Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
derekhu opened this issue Nov 5, 2020 · 0 comments
Open

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

derekhu opened this issue Nov 5, 2020 · 0 comments

Comments

@derekhu
Copy link

derekhu commented Nov 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant