使用webpack工程化小程序时,scss 解析失败
以下是我原本的配置:
// webpack.config.js
module.exports = {
...其他配置
module: {
rules: [
...
{
test: /\.(scss)$/,
include: /src/,
use: [
{
loader: 'file-loader',
options: {
useRelativePath: true,
name: '[path][name].wxss',
context: resolve('src'),
},
},
{
loader: 'sass-loader',
options: {
includePaths