修复打包过后404的bug

This commit is contained in:
pixel
2020-09-15 18:08:26 +08:00
parent e6e0f1d5db
commit ad107aadf1
4 changed files with 5409 additions and 2452 deletions
+5 -5
View File
@@ -51,10 +51,10 @@ module.exports = {
})
.end()
config
// https://webpack.js.org/configuration/devtool/#development
// https://webpack.js.org/configuration/devtool/#development
.when(process.env.NODE_ENV === 'development',
config => config.devtool('cheap-source-map')
)
config => config.devtool('cheap-source-map')
)
config
.when(process.env.NODE_ENV !== 'development',
@@ -64,7 +64,7 @@ module.exports = {
.after('html')
.use('script-ext-html-webpack-plugin', [{
// `runtime` must same as runtimeChunk name. default is `runtime`
inline: /runtime\..*\.js$/
inline: /single\..*\.js$/
}])
.end()
config
@@ -95,4 +95,4 @@ module.exports = {
}
)
}
}
}