Images not loading in Webpack build

#131 · closed · 0 comments

View on GitHub ↗

shamoh19

I am facing below issue need your help on this. http://stackoverflow.com/questions/39343300/webpack-not-loading-png-images I have few images in source folder. ​Trying to load the images to webpack output folder. Its not throwing any error. Its successfully building but in build which is my webpack output folder I am not seeing any png images​. Tried both url loader and image loader. Below is my loader ``` { test: /\.ts(x?)$/, exclude: /node_modules/, loaders: ['ng-annotate-loader', 'ts-loader'] }, { test: /\.css$/, loader: 'style-loader!css-loader' }, { test: /\.scss$/, loader: 'style!css!sass' }, { test: /\.html$/, exclude: /node_modules/, loader: 'raw' }, { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url-loader?limit=1000000&mimetype=application/font-woff' }, { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'file-loader' }, { test: /\.json$/, loader: "json-loader" }, { test: /\.(png|jpg|gif)$/, loader: "url-loader?limit=5000&name=img/img-[hash:6].[ext]" } ```

Comments