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

Enhence the compatilbily of filename as Function, also using Entrypoint names as includes and groups #83

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

yannicklin
Copy link

  1. With the codes inspired from https://github.com/Vyprichenko/media-query-plugin, the (output) filename can accept be set as function type (with is useful in using css-minimizer-webpack-plugin.
  2. Since Webpack accepts multi-entries, it's a strong need to use the entry name rather than the file names of input. However, there is no formal Loader API to get the entry name by native, so I use the loop to identify the entry name it should be. So if there are multiple entries set in the webpack.config, then the plugin conditions (includes and groups) would check the responding entry names as possible. The fallback would be checking the original filename of input.

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

Successfully merging this pull request may close these issues.

1 participant