其他分享
首页 > 其他分享> > webpack less Unexpected character '@' (1:0)

webpack less Unexpected character '@' (1:0)

作者:互联网

rules: [
{
test: /\.(sa|sc|c)ss$/,
use: [
devMode ? "style-loader" : MiniCssExtractPlugin.loader,
"css-loader",
"less-loader",
"sass-loader",
],
},]

  

  改为 (增加正则匹配)  
rules: [
{
test: /\.(le|sa|sc|c)ss$/,
use: [
devMode ? "style-loader" : MiniCssExtractPlugin.loader,
"css-loader",
"less-loader",
"sass-loader",
],
},

  

标签:MiniCssExtractPlugin,use,Unexpected,sass,less,ss,character,loader,webpack
来源: https://www.cnblogs.com/winyh/p/13897693.html