mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-30 13:23:49 +00:00
fix production className to hash
This commit is contained in:
+2
-3
@@ -9,13 +9,12 @@ module.exports = (webpackConfig) => {
|
||||
localIdentName: '[hash:base64:5]',
|
||||
}
|
||||
const cssLoaders = webpackConfig.module.loaders[3].loader.split('!')
|
||||
cssLoaders.map(item => {
|
||||
webpackConfig.module.loaders[3].loader = cssLoaders.map(item => {
|
||||
if (item.startsWith('css')) {
|
||||
return `css?${JSON.stringify(cssLoaderOption)}`
|
||||
}
|
||||
return item
|
||||
})
|
||||
webpackConfig.module.loaders[3].loader = cssLoaders.join('!')
|
||||
}).join('!')
|
||||
|
||||
// PreLoaders
|
||||
webpackConfig.module.preLoaders = [{
|
||||
|
||||
Reference in New Issue
Block a user