less配置:
npm i less -d
npm i less-loader -d
sass/scs配置:
npm i node-sass -d
npm i sass-loader -d
然后修改webpack.config.js的配置文件:
{test: /\.scss$/, use: ['style-loader','css-loader','sass-loader']},
{test: /\.less$/, use: ['style-loader','css-loader','less-loader']},