webpack.config.js中配置:
{
test: /\.scss$/,
loaders: [
'style-loader',
'css-loader',
'sass-loader'
],
// exclude: [helpers.root('src/index.html')] 注意这儿,把exclude去掉试试
},
webpack.config.js中配置:
{
test: /\.scss$/,
loaders: [
'style-loader',
'css-loader',
'sass-loader'
],
// exclude: [helpers.root('src/index.html')] 注意这儿,把exclude去掉试试
},
转载于:https://www.cnblogs.com/aloehui/p/8337569.html