25 lines
806 B
TypeScript
25 lines
806 B
TypeScript
import tailwindcss from '@tailwindcss/vite';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import { defineConfig } from 'vite';
|
|
|
|
// One script and one stylesheet with fixed names: the package serves them itself (resources/dist), so a site needs
|
|
// no Node. `npm run build` here, and commit the result.
|
|
export default defineConfig({
|
|
plugins: [vue(), tailwindcss()],
|
|
build: {
|
|
outDir: '../resources/dist',
|
|
emptyOutDir: true,
|
|
cssCodeSplit: false,
|
|
sourcemap: false,
|
|
rollupOptions: {
|
|
input: 'src/main.ts',
|
|
output: {
|
|
entryFileNames: 'manager.js',
|
|
chunkFileNames: 'manager-[name].js',
|
|
assetFileNames: 'manager[extname]',
|
|
inlineDynamicImports: true,
|
|
},
|
|
},
|
|
},
|
|
});
|