update vite config

cjs
Hunter 3 years ago
parent d5dbd0e484
commit 739e0a9c2e

@ -24,14 +24,14 @@ const config = ({ mode }) => {
target: 'es2015', target: 'es2015',
outDir: path.resolve(__dirname, 'dist'), outDir: path.resolve(__dirname, 'dist'),
assetsDir: 'assets', assetsDir: 'assets',
assetsInlineLimit: 1, //8192, assetsInlineLimit: 8192,
sourcemap: isProd ? 'hidden' : true, sourcemap: isProd ? 'hidden' : true,
emptyOutDir: true, emptyOutDir: true,
rollupOptions: { rollupOptions: {
input: path.resolve(__dirname, 'index.html'), input: path.resolve(__dirname, 'index.html'),
output: { output: {
chunkFileNames: "js/[name].[hash].js", chunkFileNames: 'js/[name].[hash].js',
entryFileNames: "js/[name].[hash].js", entryFileNames: 'js/[name].[hash].js',
// assetFileNames: "assets/[name].[hash].[ext]", // assetFileNames: "assets/[name].[hash].[ext]",
} }
} }

Loading…
Cancel
Save