Skip to content

Instantly share code, notes, and snippets.

@ryanirelan
Last active September 9, 2024 02:16
Show Gist options
  • Save ryanirelan/527bd404a5caf7b48feb8babd347ab54 to your computer and use it in GitHub Desktop.
Save ryanirelan/527bd404a5caf7b48feb8babd347ab54 to your computer and use it in GitHub Desktop.
import ViteRestart from 'vite-plugin-restart';
export default ({command}) => ({
base: command === 'serve' ? '' : '/dist/',
build: {
manifest: true,
outDir: 'web/dist/',
rollupOptions: {
input: {
app: 'src/js/app.js',
}
},
},
plugins: [
ViteRestart({
reload: [
'templates/**/*',
],
}),
],
server: {
host: '0.0.0.0',
port: 3000
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment