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

Accept inline loaders webpack syntax for assets #39

Open
ogonkov opened this issue Jan 17, 2020 · 1 comment
Open

Accept inline loaders webpack syntax for assets #39

ogonkov opened this issue Jan 17, 2020 · 1 comment
Assignees
Labels
bug Something isn't working pinned Go away stale bot

Comments

@ogonkov
Copy link
Owner

ogonkov commented Jan 17, 2020

Loader should support inline loaders signature for assets, loaded via static().

{{ static('style-loader!css-loader?modules!./styles.css') }}
{{ static('!style-loader!css-loader?modules!./styles.css') }}
{{ static('!!style-loader!css-loader?modules!./styles.css') }}
{{ static('-!style-loader!css-loader?modules!./styles.css') }}

Same should work for resources with expressions.

@ogonkov ogonkov added the bug Something isn't working label Jan 17, 2020
@ogonkov ogonkov self-assigned this Jan 17, 2020
@ogonkov
Copy link
Owner Author

ogonkov commented Jan 17, 2020

Most of the time inline loaders could be replaced by module.rules with issuer: /\.njk$/, so i consider it is a minor bug. Drop a line in comments, if you blocked by this bug. PRs are welcome.

@ogonkov ogonkov changed the title Accept inline loaders for assets Accept inline loaders webpack syntax for assets Jul 23, 2020
@ogonkov ogonkov added the pinned Go away stale bot label Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pinned Go away stale bot
Projects
None yet
Development

No branches or pull requests

1 participant