Closed bibekluitel closed 6 years ago
Hi there! Thanks for using my package.
As far as your setup goes, it looks pretty fine. The only thing is that by default, images are automatically handled by Laravel Mix. This means that when you do a url() call in your CSS, Webpack will find the image and include it in the generated bundle. Thus, you need to make sure that the path you put in the url() function is relative the your CSS file, rather than relative to the public directory. Check the Laravel Mix Docs for more info on this process.
I hope this solves your problem! I will close your issue for now, but please let me know if there is a problem relating to this package.
HI, After usignn reactCssModules in i am not able to convert the image urls inside Js file.
This are my webpack.mix.js
this is in my app.css file
this is in my React file
And i got error after running npm run build
ERROR in ./resources/assets/images/nn.jpg Module build failed: Error: write EPIPE at exports._errnoException (util.js:1050:11) at WriteWrap.afterWrite [as oncomplete] (net.js:814:14) @ ./node_modules/css-loader??ref--5-1!./resources/assets/js/components/app.css 7:141-171