1、less
(1) cnpm install less less-loader --save (2)在webpack.base.conf.js里 { test:/.less$/, loader:'style-loader!css-loader!less-loader' } (3) <style scoped lang="less"> 或 @import './index.less';
2、晚上整理
1、less
(1) cnpm install less less-loader --save (2)在webpack.base.conf.js里 { test:/.less$/, loader:'style-loader!css-loader!less-loader' } (3) <style scoped lang="less"> 或 @import './index.less';
2、晚上整理