mirror of
https://github.com/HackPlan/uui-admin-template.git
synced 2026-01-12 15:05:02 +08:00
26 lines
660 B
JavaScript
26 lines
660 B
JavaScript
/* craco.config.js */
|
|
|
|
module.exports = {
|
|
style: {
|
|
postcss: {
|
|
mode: 'extends',
|
|
plugins: [require('postcss-import'), require('tailwindcss')],
|
|
},
|
|
},
|
|
plugins: [
|
|
{
|
|
plugin: {
|
|
overrideWebpackConfig: ({
|
|
webpackConfig,
|
|
}) => {
|
|
const minimizerIndex = webpackConfig.optimization.minimizer.findIndex(item => item.options.terserOptions);
|
|
const terserOption = webpackConfig.optimization.minimizer[minimizerIndex].options.terserOptions
|
|
terserOption.keep_classnames = true;
|
|
terserOption.keep_fnames = true;
|
|
return webpackConfig;
|
|
},
|
|
},
|
|
},
|
|
],
|
|
}
|