标签:require vue 定义 exp 成功 port loader style back
vue add style-resources-loader
module.exports = { pluginOptions: { ‘style-resources-loader‘: { preProcessor: ‘less‘, patterns: [], }, }, };
module.exports = { pluginOptions: { ‘style-resources-loader‘: { preProcessor: ‘less‘, patterns: [ path.resolve(__dirname, ‘./src/assets/varibles.less‘), ], }, }, };
const path = require(‘path‘); module.exports = { pluginOptions: { ‘style-resources-loader‘: { preProcessor: ‘less‘, patterns: [ path.resolve(__dirname, ‘./src/assets/varibles.less‘), ], }, }, };
标签:require vue 定义 exp 成功 port loader style back
原文地址:https://www.cnblogs.com/wzp-monkey/p/10120572.html