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

Add data so it is possible to include globals scss variables #1035

Merged

Conversation

steffenmllr
Copy link
Contributor

This is a fix for #1032 - gives the possibility to use globals variables within the data attribute - same as https://github.com/webpack-contrib/sass-loader/blob/master/lib/normalizeOptions.js#L24

@Dobby89
Copy link

Dobby89 commented Nov 23, 2018

@steffenmllr Can I use this to inject JavaScript variables into my scss?

@steffenmllr steffenmllr deleted the feature/scss-data-attribute branch November 23, 2018 06:40
@steffenmllr
Copy link
Contributor Author

@Dobby89 nope you can setup variables in scss (define them in a eg. globals.scss) and those variables are available in all your required scss files

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.

3 participants