-
-
Notifications
You must be signed in to change notification settings - Fork 199
style in Vue Js single component are ignored #350
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
Comments
Hi @alex83130, Could be related to #316 ? Maybe you could give a quick shot at the pending Webpack 4 PR (#324) to see if that fixes it? |
Thanks @Lyrkan for your answer. So for now I keep separate my css of my Vue Single Component... |
Another problem, style in single component from lib in node_modules is also ignored. It's more problematic ... Upgrate to Webpack 4 is the only way to correct the issue ? |
@alex83130 I can't reproduce the issue with a minimal project using Webpack 3: https://gist.github.com/Lyrkan/c4870460754671fc943411d390e87564 Does Webpack generate the CSS file that contains the scoped styles in your case? |
It's ok ! Webpack was generating well the css file with all scoped css (owners and node_modules) but I didn't include it in my index.html .... |
Glad to hear it :) |
|
I solved the problem by adding
note that my entry point in webpack.conf is defined as |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I add .enableVueLoader() in my webpack.config.js
I try to apply a style in my single vue component App.vue
But it's ingored and I do'nt know why... maybe a bug of vue-loader ?
My App.vue :
and my webpack.config.js :
Thank you in advance !
The text was updated successfully, but these errors were encountered: