From 9b11953e58046f2c3ae106ec92c165a60c8ba23f Mon Sep 17 00:00:00 2001 From: danbulant Date: Sat, 15 Feb 2020 20:01:30 +0100 Subject: [PATCH] Dev server configuration & fix file-loader --- client/webpack.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client/webpack.config.js b/client/webpack.config.js index ca5087c..a1709a1 100644 --- a/client/webpack.config.js +++ b/client/webpack.config.js @@ -4,6 +4,10 @@ const path = require('path'); module.exports = { entry: './src/index.ts', devtool: 'inline-source-map', + devServer: { + compress: true, + port: 8080 + }, module: { rules: [ // TYPESCRIPT @@ -22,8 +26,11 @@ module.exports = { }, // IMAGES { - test: /\.(png|svg|jpg|gif)$/, + test: /\.(png|svg|jpe?g|gif)$/, use: [ + { + loader: 'file-loader' + }, 'file-loader', ], },