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