mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-08 19:54:05 +08:00
23 lines
614 B
JavaScript
23 lines
614 B
JavaScript
const path = require('path');
|
||
|
||
module.exports = {
|
||
css: {
|
||
// 配置css模块
|
||
loaderOptions: {
|
||
// 向预处理器 Loader 传递配置选项
|
||
less: {
|
||
// 配置less(其他样式解析用法一致)
|
||
javascriptEnabled: true, // 设置为true
|
||
},
|
||
},
|
||
},
|
||
outputDir: path.join(__dirname, '../public/feature'),
|
||
publicPath: process.env.NODE_ENV === 'production' ? '' : '/',
|
||
chainWebpack: (config) => {
|
||
// 查看打包文件体积大小
|
||
config
|
||
.plugin('webpack-bundle-analyzer')
|
||
.use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin);
|
||
},
|
||
};
|