问题解决25:Cannot find module './index.vue?vue&type=style&index=0&lang=scss&'
在webpack样式中使用 scss的时候报错Cannot find module ‘./index.vue?vue&type=style&index=0&lang=scss&’解决:首先npm安装包:"node-sass": "^4.12.0","sass-loader": "^7.1.0",webpack.config.jsrules里面 ...
·
在webpack样式中使用 scss的时候报错
Cannot find module ‘./index.vue?vue&type=style&index=0&lang=scss&’
解决:
首先npm安装包:
"node-sass": "^4.12.0",
"sass-loader": "^7.1.0",
webpack.config.js rules里面 配置
{
test: /\.scss$/,
use: ['style-loader', 'css-loader', 'sass-loader']
}, // 处理 scss 文件的 loader
更多推荐
所有评论(0)