fix: 开发环境启动报错

This commit is contained in:
dataeaseShu 2023-05-15 13:42:24 +08:00
parent ba549dc5b6
commit a06b2feefd

View File

@ -50,7 +50,7 @@ module.exports = {
'@': resolve('src') '@': resolve('src')
} }
}, },
output: { output: process.env.NODE_ENV === 'development' ? {} : {
filename: `js/[name].[contenthash:8].${pkg.version}.js`, filename: `js/[name].[contenthash:8].${pkg.version}.js`,
publicPath: '/', publicPath: '/',
chunkFilename: `js/[name].[contenthash:8].${pkg.version}.js` chunkFilename: `js/[name].[contenthash:8].${pkg.version}.js`