-
Notifications
You must be signed in to change notification settings - Fork 918
Duplicate loaders for .css #1231
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
Point to reproduce the issue:
{
test: /\.css$/,
use: [
{ loader: "vue-style-loader", options: { } },
'css-loader'
]
}
The reason should be that if |
Looks like we may need to whitelist anything that may be used in CSS related rules. Previously we did use a blacklist because some loaders do not allow unknown options (babel-loader, ts-loader). Given that we probably going to have a much longer list if we use whitelists, it seems better to switch back to a blacklist... |
Alternatively we need to at least include the following in the whitelist:
|
Version
15.0.0-rc.1
Reproduction link
https://github.com/nuxt/nuxt.js/tree/dev/examples/async-component-injection
Steps to reproduce
Use
<style src="">
to import css.What is expected?
CSS can ben loaded by
css-loader
,vue-style-loader
successfully.What is actually happening?
Error:
According to my investigation, 5a9ee91 introduced this issue.
<style src="@/assets/css/index.css"/>
will be applied to bothrawLoaders(vue-style-loader, css-loader)
and alsocloned rules
fromvue-loader
.test
andresourceQuery
inVueLoaderPlugin
can also be passed for this kind of css file.The text was updated successfully, but these errors were encountered: