From ab30818a501022b04e4862b65ee3dc70973d508f Mon Sep 17 00:00:00 2001 From: Damien Date: Tue, 23 Jan 2018 13:32:13 +0000 Subject: [PATCH 01/10] Fixes Webpack not wanting to load or show files --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 0178162d6..97d97655c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -45,7 +45,7 @@ module.exports = function makeWebpackConfig() { // Output path from the view of the page // Uses webpack-dev-server in development - publicPath: isProd ? '/' : 'http://localhost:8080/', + publicPath: isProd ? '/' : 'http://0.0.0.0:8080/', // Filename for entry points // Only adds hash in build mode From 67fd6223111fd16d54a3e327a11ad86db73a8ec7 Mon Sep 17 00:00:00 2001 From: Damien Date: Tue, 23 Jan 2018 13:49:13 +0000 Subject: [PATCH 02/10] Configures Dev Server Host to match other config --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 97d97655c..e5a409f1c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -217,7 +217,8 @@ module.exports = function makeWebpackConfig() { */ config.devServer = { contentBase: './src/public', - stats: 'minimal' + stats: 'minimal', + host: '0.0.0.0' }; return config; From 63236c61d526e1db795fa714aaea0a657a233691 Mon Sep 17 00:00:00 2001 From: Joseph Lin Date: Thu, 1 Feb 2018 17:10:59 -0500 Subject: [PATCH 03/10] [Update] License to current year --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index fad004c8a..43d69febc 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015-2017 Preboot team +Copyright (c) 2015-2018 Preboot team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From ae1980adf941a3eac3043ec578b31f0b43fee145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dras=CC=8Cko=20Kokic=CC=81?= Date: Sun, 6 May 2018 13:04:39 +0200 Subject: [PATCH 04/10] Update outdated dev dependencies --- package.json | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index c1c1569f6..a9deab621 100644 --- a/package.json +++ b/package.json @@ -23,33 +23,34 @@ "angular": "^1.5.0" }, "devDependencies": { + "ajv": "^6.4.0", "angular-mocks": "^1.5.0", - "autoprefixer": "^6.0.3", - "babel-core": "^6.2.1", - "babel-loader": "^6.2.0", + "autoprefixer": "^8.4.1", + "babel-core": "^6.26.3", + "babel-loader": "^7.1.4", "babel-preset-es2015": "^6.1.18", - "copy-webpack-plugin": "4.0.1", - "css-loader": "0.26.1", + "copy-webpack-plugin": "^4.5.1", + "css-loader": "^0.28.11", "extract-text-webpack-plugin": "2.0.0-beta.5", - "file-loader": "^0.9.0", - "html-webpack-plugin": "^2.7.1", - "istanbul-instrumenter-loader": "^1.0.0", - "jasmine-core": "^2.3.4", - "karma": "^1.1.0", + "file-loader": "^1.1.11", + "html-webpack-plugin": "^3.2.0", + "istanbul-instrumenter-loader": "^3.0.1", + "jasmine-core": "^3.1.0", + "karma": "^2.0.2", "karma-coverage": "^1.0.0", "karma-jasmine": "^1.0.2", "karma-phantomjs-launcher": "^1.0.0", "karma-sourcemap-loader": "^0.3.7", - "karma-spec-reporter": "0.0.26", - "karma-webpack": "2.0.1", - "node-libs-browser": "2.0.0", + "karma-spec-reporter": "^0.0.32", + "karma-webpack": "^3.0.0", + "node-libs-browser": "^2.1.0", "null-loader": "^0.1.1", "phantomjs-prebuilt": "^2.1.4", - "postcss-loader": "1.2.2", + "postcss-loader": "^2.1.5", "raw-loader": "^0.5.1", "rimraf": "^2.5.1", - "style-loader": "^0.13.0", - "webpack": "2.2.0", - "webpack-dev-server": "2.2.0" + "style-loader": "^0.21.0", + "webpack": "^2.7.0", + "webpack-dev-server": "^2.11.2" } } From 9a0a0f85ccb87554f8be8489371cf8aeb95dd584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dras=CC=8Cko=20Kokic=CC=81?= Date: Thu, 24 May 2018 18:12:49 +0200 Subject: [PATCH 05/10] Upgrade dependencies to the latest stable angular.js --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a9deab621..1cf62b05f 100644 --- a/package.json +++ b/package.json @@ -20,11 +20,11 @@ }, "homepage": "https://github.com/preboot/angularjs-webpack", "dependencies": { - "angular": "^1.5.0" + "angular": "^1.7.0" }, "devDependencies": { "ajv": "^6.4.0", - "angular-mocks": "^1.5.0", + "angular-mocks": "^1.7.0", "autoprefixer": "^8.4.1", "babel-core": "^6.26.3", "babel-loader": "^7.1.4", From 327cfd4531f471d3a212ce080363d30b8277597b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dras=CC=8Cko=20Kokic=CC=81?= Date: Sun, 6 May 2018 12:25:23 +0200 Subject: [PATCH 06/10] Add explicit browserslist config --- .browserslistrc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .browserslistrc diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 000000000..a834cb0d3 --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,7 @@ +[production staging] +> 1% +ie 10 + +[development] +last 1 chrome version +last 1 firefox version From 70698214f5a852d86b02d76061a115bb652094fd Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Wed, 30 May 2018 22:02:50 +0900 Subject: [PATCH 07/10] Create .editorconfig --- .editorconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..5850e3267 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +# editorconfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +trim_trailing_whitespace = true + +[*.js] +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false From 19919e53b0c0730f0b5216687092c896649f0798 Mon Sep 17 00:00:00 2001 From: Erich Behrens Date: Tue, 12 Jun 2018 16:37:15 +0200 Subject: [PATCH 08/10] Fix publicPath for dev build --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index e5a409f1c..587421ff4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -45,7 +45,7 @@ module.exports = function makeWebpackConfig() { // Output path from the view of the page // Uses webpack-dev-server in development - publicPath: isProd ? '/' : 'http://0.0.0.0:8080/', + publicPath: '/', // Filename for entry points // Only adds hash in build mode From a4f1b4c92a0ffa17835f6112bc173ee165cff10e Mon Sep 17 00:00:00 2001 From: Peter Blazejewicz Date: Sat, 18 May 2019 23:46:49 +0200 Subject: [PATCH 09/10] Use CleanWebpackPlugin instead of rimraf This probably more common solution for cleaning dist directory when using only webpack Thanks! --- package.json | 4 ++-- webpack.config.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1cf62b05f..6e68269bc 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.1.0", "description": "A workflow for Angular made with Webpack", "scripts": { - "build": "rimraf dist && webpack --bail --progress --profile", + "build": "webpack --bail --progress --profile", "server": "webpack-dev-server --history-api-fallback --inline --progress", "test": "karma start", "test-watch": "karma start --auto-watch --no-single-run", @@ -29,6 +29,7 @@ "babel-core": "^6.26.3", "babel-loader": "^7.1.4", "babel-preset-es2015": "^6.1.18", + "clean-webpack-plugin": "^2.0.2", "copy-webpack-plugin": "^4.5.1", "css-loader": "^0.28.11", "extract-text-webpack-plugin": "2.0.0-beta.5", @@ -48,7 +49,6 @@ "phantomjs-prebuilt": "^2.1.4", "postcss-loader": "^2.1.5", "raw-loader": "^0.5.1", - "rimraf": "^2.5.1", "style-loader": "^0.21.0", "webpack": "^2.7.0", "webpack-dev-server": "^2.11.2" diff --git a/webpack.config.js b/webpack.config.js index 587421ff4..8baa899aa 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,6 +6,7 @@ var autoprefixer = require('autoprefixer'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var CopyWebpackPlugin = require('copy-webpack-plugin'); +var CleanWebpackPlugin = require('clean-webpack-plugin'); /** * Env @@ -160,6 +161,7 @@ module.exports = function makeWebpackConfig() { * List: http://webpack.github.io/docs/list-of-plugins.html */ config.plugins = [ + new CleanWebpackPlugin(), new webpack.LoaderOptionsPlugin({ test: /\.scss$/i, options: { From 533ec9d485864cd6d270d7b7421dd31f5906de8e Mon Sep 17 00:00:00 2001 From: Peter Blazejewicz Date: Sat, 18 May 2019 23:50:39 +0200 Subject: [PATCH 10/10] Remove deprecated dedupe plugin usage See: https://webpack.js.org/migrate/3/#dedupeplugin-has-been-removed Thanks! --- webpack.config.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 587421ff4..53240cba8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -194,10 +194,6 @@ module.exports = function makeWebpackConfig() { // Only emit files when there are no errors new webpack.NoErrorsPlugin(), - // Reference: http://webpack.github.io/docs/list-of-plugins.html#dedupeplugin - // Dedupe modules in the output - new webpack.optimize.DedupePlugin(), - // Reference: http://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin // Minify all javascript, switch loaders to minimizing mode new webpack.optimize.UglifyJsPlugin(),