Module build failed (from ./node_modules/css-loader/dist/cjs.js):
CssSyntaxError
(1:4) Unknown word
> 1 | // style-loader: Adds some css to the DOM by adding a <style> tag
| ^
2 |
3 | // load the styles
@ ./node_modules/vue-slider-component/theme/antd.css 4:14-338 14:3-18:5 15:22-346
在Webpack 4中构建应用程序时出现此错误.这是我的CSS加载程序配置:
{
test: /\.css$/,
use: ["vue-style-loader", "css-loader", "postcss-loader"]
},
{
test: /\.scss$/,
use: ["vue-style-loader", "css-loader", "postcss-loader", "sass-loader"]
}
我怎样才能稍微放松一下规则,这样就不会在这些问题上失败?
谢谢