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
{{ message }}
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
I decided to use file loader to copy the images I reference in my SCSS into my public assets folder. So I added the following to my webpack config file:
module: {loaders: [/* babel and css loaders */{loader: 'file?name=[name].[ext]!img',test: /\.(jpe?g|png|gif|svg)$/i,}]}
The first time I tried to run webpack with that configuration it stopped in: 67% 686/714 build modules. The process continued running but didn't move from that point and there were no error messages. I also tried to set output.publicPath but nothing changed.
Besides the file loader, I am using babel to transpile ES2015 and React and the css, sass and postcss loaders.
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
bensampaio
changed the title
File loader blocks webpack
File loader freezes webpack
Jul 6, 2016
Later on I realised this problem was related to sass-loader: webpack-contrib/sass-loader#100. It was just a coincidence that the problem started happening after I added the file-loader.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I decided to use file loader to copy the images I reference in my SCSS into my public assets folder. So I added the following to my webpack config file:
The first time I tried to run webpack with that configuration it stopped in: 67% 686/714 build modules. The process continued running but didn't move from that point and there were no error messages. I also tried to set
output.publicPath
but nothing changed.Besides the file loader, I am using babel to transpile ES2015 and React and the css, sass and postcss loaders.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: