We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The injected link tag should reference the correct link URL.
The passed url parameter into the link tag function is an esModule (for whatever reason) as follows:
url
{ "default": "//localhost:4001/main.css" }
Hence the appended <link /> child looks like this:
<link />
<link rel="stylesheet" href="[object Module]">
No matter whether we use import './main.css' or require('./main.css'); in our component code. Even import styles from './main.css' does not help.
import './main.css'
require('./main.css');
import styles from './main.css'
{ test: /\.css$/, use: [ { loader: 'style-loader', options: { injectType: 'linkTag' } }, { loader: 'file-loader', options: { name: 'main.css', }, }, ] },
The text was updated successfully, but these errors were encountered:
Thanks for issue 👍
Sorry, something went wrong.
@evilebottnawi Shall I provide a PR?
@4iAmAve no need, i already WIP on this 👍
linkTag
@evilebottnawi
Thanks a lot. That went fast. :)
Successfully merging a pull request may close this issue.
Expected Behavior
The injected link tag should reference the correct link URL.
Actual Behavior
The passed
url
parameter into the link tag function is an esModule (for whatever reason) as follows:Hence the appended
<link />
child looks like this:No matter whether we use
import './main.css'
orrequire('./main.css');
in our component code.Even
import styles from './main.css'
does not help.Code
The text was updated successfully, but these errors were encountered: