docschina / docschina-issue-discussions-open

MIT License
0 stars 0 forks source link

webpack5文档less-loader那里错了 #40

Open hqm012 opened 2 years ago

hqm012 commented 2 years ago
module.exports = {
  module: {
    rules: [
      {
        test: /\.less$/i,
        loader: [
          // compiles Less to CSS
          'style-loader',
          'css-loader',
          'less-loader',
        ],
      },
    ],
  },
};

rules里面使用多个loader的不应该是"loader",而是"use"

rain78 commented 2 years ago

哈哈,我提完才发现你也提了。我在微信上反应了很久,没人回复