Update LESS loader options in vue.config.js

This commit is contained in:
muwoo
2025-11-27 18:15:37 +08:00
committed by GitHub
parent b75188fdb8
commit 3b4ca0e289

View File

@@ -7,10 +7,12 @@ module.exports = {
// 向预处理器 Loader 传递配置选项
less: {
// 配置less其他样式解析用法一致
lessOptions: {
javascriptEnabled: true, // 设置为true
},
},
},
},
productionSourceMap: false,
outputDir: path.join(__dirname, '../public/feature'),
publicPath: process.env.NODE_ENV === 'production' ? '' : '/',