update vite config

gsl
Hunter 3 years ago
parent d5dbd0e484
commit 739e0a9c2e

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

Loading…
Cancel
Save