Skip to content

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

Open
@derekhu

Description

@derekhu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions