Browse Source

chore: improved webpack hot reload times, removed unnecessary package + log messages

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 4 years ago
parent
commit
dc6cc820ca
3 changed files with 4 additions and 7 deletions
  1. 0 1
      frontend/package.json
  2. 0 2
      frontend/webpack.common.js
  3. 4 4
      frontend/webpack.dev.js

+ 0 - 1
frontend/package.json

@@ -55,7 +55,6 @@
     "vue-router": "^3.0.7",
     "vuedraggable": "^2.24.3",
     "vuex": "^3.1.1",
-    "webpack-md5-hash": "0.0.6",
     "webpack-merge": "^4.2.1"
   }
 }

+ 0 - 2
frontend/webpack.common.js

@@ -1,5 +1,4 @@
 const VueLoaderPlugin = require("vue-loader/lib/plugin");
-const WebpackMd5Hash = require("webpack-md5-hash");
 const HtmlWebpackPlugin = require("html-webpack-plugin");
 
 module.exports = {
@@ -10,7 +9,6 @@ module.exports = {
 	},
 	plugins: [
 		new VueLoaderPlugin(),
-		new WebpackMd5Hash(),
 		new HtmlWebpackPlugin({
 			hash: true,
 			template: "dist/index.tpl.html",

+ 4 - 4
frontend/webpack.dev.js

@@ -22,11 +22,11 @@ module.exports = merge(common, {
 		hot: true,
 		port: config.get("frontendPort"),
 		public: config.get("frontendDomain"),
+		host: "0.0.0.0",
 		watchOptions: {
-			aggregateTimeout: 300,
-			poll: 1000
+			ignored: /node_modules/
 		},
-		host: "0.0.0.0",
-		disableHostCheck: true
+		disableHostCheck: true,
+		stats: { chunks: false, children: false }
 	}
 });