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
Hello. Can you provide some info about using loaders in webpack configs?
I trying to load png and jpg files in my component: import image from "../../assets/cover.png"
and have error: Unexpected character '�' (1:0)
i tried with url-loader and file-loader in my webpack/developement.js and webpack/production.js, like this:
That'll need Webpack operating on the server side code too (or a Babel plugin), to deal with any requires for things that aren't JavaScript (like images and CSS). At the minute it's set up for the simple case where we're just dealing with JavaScript, but maybe not that's not so realistic, so we'll get this done.
Hello. Can you provide some info about using loaders in webpack configs?
I trying to load png and jpg files in my component:
import image from "../../assets/cover.png"
and have error:
Unexpected character '�' (1:0)
i tried with url-loader and file-loader in my webpack/developement.js and webpack/production.js, like this:
Thx!
The text was updated successfully, but these errors were encountered: