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
It was an issue with the css-loader. css-loader is returning an Array object. I have written a small loader that casts object to a string, [to-string][https://github.com/gajus/to-string].
It is a simple loader that executes content like a module and casts output to a string:
I am using CSS loader in combination with sass-loader as such:
I want
require('./my-style.scss')
to return a string. However, now it is returning an Array object:I can cast the require statement to a string (
require('./my-style.scss').toString()
), though I'd webpack to do that for me.How do I modify the loader definition to produce a string as the final output?
The text was updated successfully, but these errors were encountered: