-
Notifications
You must be signed in to change notification settings - Fork 68
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
Do we still need vue-style-loader
?
#42
Comments
Any ideas? |
Same here |
I was still using |
@laberning Ahhh, THAT is what the issue was... lots of out of date documentation out there |
Far out! Extending on from @laberning , every Google result out there chains css-loader with vue-style-loader. This works fine if you use vue-cli-service to build your app and only have one entry point since the [email protected] uses [email protected] (latest npm versions at the time of writing). However, if you use webpack to build your app directly (you may want to support multiple entry points, for instance, or integrate your Vue project with another project - Vue is progressive, right!?) the latest css-loader is 4.2.0 and this DOES NOT seem to work with [email protected] out of the box. In this case using style-loader instead does indeed do the trick. If you'd prefer, you can also downgrade your css-loader to 3.6.0 Well, at least I know more about webpack and Vue. 8 hours, later... Hope this helps someone! |
For a workaround for this, see #46 |
After I upgraded the 'css-loader' to 4.2.1, the 'vue-style-loader' failed to work properly, causing the style to fail to load.
|
What's different between style-loader v1 and vue-style-loader now? |
After my project was replaced, it worked normally. You can also add
|
I'm not sure about SSR support in style-loader. |
Unfortunately, the pure P.S. Like many here, spent several hours to figure out why styles aren't being applied. |
why not loading styling of vue ?,the answer is that vue-style-loader plugins file .babelrc "plugins": ["transform-es2015-modules-commonjs".but in the css-loade https://github.com/webpack-contrib/css-loader#esmodule ,this option means it's ES module. that don't match .so when i change css-loader options :esmodule. It works . When i see style-loader ,i find it's plungins same as css-loader. |
vue-style-loader
haven't update for a long time. Sincestyle-loader v1.x
published, I usestyle-loader
to replace it, everything works fine.Question is:
style-loader
work invue-ssr-project
?options.injectType
ofstyle-loader
insteadoptions.manualInject
ofvue-style-loader
?My answer:
I don't know, because I don't use SSR for now.
The text was updated successfully, but these errors were encountered: