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

Identify StyleTag via an attribute #470

Closed
tooltonix opened this issue May 20, 2020 · 1 comment
Closed

Identify StyleTag via an attribute #470

tooltonix opened this issue May 20, 2020 · 1 comment

Comments

@tooltonix
Copy link

Hello,

I currently have the problem that we use two CSS files:
the first one is for the mobile version and the second one for the desktop version, which uses a media query. Both files get different media queries, so I have to identify them during the development process in Webpack. So I used a very old fork from the StyleLoader, which could pass the name of the CSS file in an attribute to the style tag for identification:

options: { attrs: { id: 'id' , 'data-from': '[path][name].[ext]'} }

Is there a similar possibility with the current version of the StyleLoader? Currently I abuse the possibility to add a nonce attribute to the style tags.

@alexander-akait
Copy link
Member

Duplicate #216, please don't ignore the issue template

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

2 participants