diff --git a/package.json b/package.json index f01acfd..41bd4b7 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "babel-preset-react": "^6.24.1", "css-loader": "^0.28.7", "extract-text-webpack-plugin": "^3.0.0", + "file-loader": "^1.1.5", "glob": "^7.1.2", "html-webpack-plugin": "^2.30.1", "html-webpack-template": "^5.6.0", diff --git a/webpack.config.js b/webpack.config.js index fc2e75e..b752ebb 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -40,6 +40,12 @@ module.exports = (env) => { test: /\.css$/, use: ['style-loader', 'css-loader'], }, + { + test: /\.(png|svg|jpg|gif)$/, + use: [ + 'file-loader', + ], + }, ], loaders: [ {