mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-03 12:17:38 +08:00
1fb871da09
* feat: mini-css-extract-plugin支持配置 * fix: 修复设置extraCSS为false时关闭压缩css错误
13 lines
364 B
JavaScript
13 lines
364 B
JavaScript
import path from 'path';
|
|
import { defineBuildConfig } from '@fesjs/fes';
|
|
|
|
export default defineBuildConfig({
|
|
// publicPath: 'https://gw.alipayobjects.com/',
|
|
// 配置 mini-css-extract-plugin
|
|
extraCSS: {
|
|
loader: {
|
|
publicPath: (resourcePath, context) => `${path.relative(path.dirname(resourcePath), context)}/`,
|
|
},
|
|
},
|
|
});
|