mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
fix: useExtraCSS 名称异常
This commit is contained in:
parent
e38f0be344
commit
4f1b300a5d
@ -109,7 +109,7 @@ export default function createCssWebpackConfig({
|
||||
browserslist
|
||||
});
|
||||
|
||||
if (isDev && config.useExtraCSS) {
|
||||
if (!isDev && config.useExtraCSS) {
|
||||
webpackConfig.plugin('extra-css')
|
||||
.use(require.resolve('mini-css-extract-plugin'), [{
|
||||
filename: '[name].[contenthash:8].css',
|
||||
|
@ -1,12 +1,12 @@
|
||||
|
||||
export default (api) => {
|
||||
api.describe({
|
||||
key: 'useExtraCss',
|
||||
key: 'useExtraCSS',
|
||||
config: {
|
||||
schema(joi) {
|
||||
return joi.boolean();
|
||||
}
|
||||
},
|
||||
default: true
|
||||
},
|
||||
default: true
|
||||
}
|
||||
});
|
||||
};
|
||||
|
@ -5,5 +5,10 @@ export default {
|
||||
request: {
|
||||
base: '/api'
|
||||
},
|
||||
chainWebpack(memo) {
|
||||
memo.output.filename('./static/[name].[contenthash:8].js')
|
||||
.chunkFilename('./static/[name].[contenthash:8].chunk.js')
|
||||
.assetModuleFilename('./static/[hash][ext][query]');
|
||||
},
|
||||
useExtraCSS: false
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user