同步MU
2021-01-30 11:48
scss文件中引入图片,webpack编译错误?
webpack.config,js 代码要怎么更改
var webpack = require("webpack");var path = require("path");module.exports = { mode: "development", entry: [ "./app.js" ], output: { path: path.resolve(__dirname, "./build"), filename: "bundle.js" }, module: { rules: [ { test: /\.css$/i, use: ["style-loader", "css-loader"] }, { test: /\.scss$/i, use: ["style-loader", "css-loader", "sass-loader" ] }, { test: /\.(png | jpg)$/i, use: ["url-loader?limit=8192"] }, ] }}
看一下打包的loader的版本对应不对应,
移动web开发适配秘籍Rem
37076 学习 · 88 问题
相似问题