easy-team/easywebpack

alias needed for "mini-css-extract-plugin".loader

derekhu opened this issue · 0 comments

The build-in plugin "mini-css-extract-plugin" has an alias "extract" to add options to it.
https://www.yuque.com/easy-team/easywebpack/plug

However, there is not an alias for the same one "mini-css-extract-plugin".loader to add loader options of it:
https://github.com/webpack-contrib/mini-css-extract-plugin#string-2

    rules: [
      {
        test: /\.css$/,
        use: [
          {
            loader: MiniCssExtractPlugin.loader,
            options: {
              publicPath: '/public/path/to/',
            },
          },
          'css-loader',
        ],
      },
    ],

There is no way to config the loader options of MiniCssExtractPlugin.

Needed, thanks