mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-07 02:54:11 +08:00
24 lines
662 B
JavaScript
24 lines
662 B
JavaScript
const path = require('path');
|
||
|
||
module.exports = {
|
||
css: {
|
||
// 配置css模块
|
||
loaderOptions: {
|
||
// 向预处理器 Loader 传递配置选项
|
||
less: {
|
||
// 配置less(其他样式解析用法一致)
|
||
javascriptEnabled: true, // 设置为true
|
||
},
|
||
},
|
||
},
|
||
productionSourceMap: false,
|
||
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);
|
||
// },
|
||
};
|