You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
css!: process a CSS file with the CSS loader (for resolving URLs and requiring fonts and images through the file loader)
val!: extract the CSS module's string-value
file?opts!: generate a file from the output, obtain a url
style/url: require the stylesheet via a <link> tag
I run into problems with the val loader, because when it's exec()ing the CSS module it is not using webpack's require (or enhanced-require for that matter) so it doesn't use the configured file loader for fonts and images. It looks like #287 is related but not sufficient for this case.
The actual config & code looks more or less like this:
Hi,
I'm not exactly sure if this can, or even should work, but basically, what I'm trying to accomplish is:
css!
: process a CSS file with the CSS loader (for resolving URLs and requiring fonts and images through the file loader)val!
: extract the CSS module's string-valuefile?opts!
: generate a file from the output, obtain a urlstyle/url
: require the stylesheet via a<link>
tagI run into problems with the
val
loader, because when it'sexec()
ing the CSS module it is not using webpack's require (or enhanced-require for that matter) so it doesn't use the configured file loader for fonts and images. It looks like #287 is related but not sufficient for this case.The actual config & code looks more or less like this:
webpack.config.js:
entry.js
How would you recommend to approach this problem?
The text was updated successfully, but these errors were encountered: