-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
Support CSS modules in Vue.js projects by default #508
Conversation
f0756ac
to
356e538
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow! Well-done - very interesting way that this needs to be implemented!
Thank you @Lyrkan! |
This PR was merged into the master branch. Discussion ---------- Support CSS modules in Vue.js projects by default With the current version of Encore you are able to either: * only use standard CSS (default behavior) * only use CSS modules (by calling `Encore.configureCssLoader()`) This PR should help detecting when `<style module>` is used and enabling css modules accordingly (fixes #460). **Reference:** https://vue-loader.vuejs.org/guide/css-modules.html#opt-in-usage Commits ------- 356e538 Support CSS modules in Vue.js projects by default
Hi! Unfortunately this does not work with a language (scss) set as it used to... Can this support SCSS lang modules too? |
Hmm...we probably have to use the same trick for all languages since they re-include the css loader. I'll see what I can do, unless I'm missing something it shouldn't be too hard to implement. |
Thank you so much!
…Sent from my iPhone
On Feb 4, 2019, at 11:58 PM, Vincent Le Biannic ***@***.***> wrote:
Hmm...we probably have to use the same trick for all languages since they re-include the css loader. I'll se what I can do, unless I'm missing something it shouldn't be too hard to implement.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
…Lyrkan) This PR was merged into the master branch. Discussion ---------- Add CSS modules support in Vue.js for Sass/Less/Stylus As noted in #508 (comment), that previous PR actually only added support for standard CSS modules, but didn't work for other languages. This new PR makes it so it also works with the Scss, Less and Stylus syntaxes (using the same principle). Ping @Chesskingt :) Commits ------- 3224e6c Add CSS modules support in Vue.js for Sass/Less/Stylus
With the current version of Encore you are able to either:
Encore.configureCssLoader()
)This PR should help detecting when
<style module>
is used and enabling css modules accordingly (fixes #460).Reference: https://vue-loader.vuejs.org/guide/css-modules.html#opt-in-usage