1.下载less到项目中
运行npm install less less-loader --save
2.配置webpack.base.conf.js
写入{ test: /.less$/, loader: "style-loader!css-loader!less-loader", }
运行npm install less less-loader --save
写入{ test: /.less$/, loader: "style-loader!css-loader!less-loader", }