diff --git a/project_template/config/uglify.js b/project_template/config/uglify.js deleted file mode 100644 index 1075355..0000000 --- a/project_template/config/uglify.js +++ /dev/null @@ -1,19 +0,0 @@ -module.exports = { - output: { - comments: false - }, - compress: { - unused: true, - warnings: false, - comparisons: true, - conditionals: true, - negate_iife: false, - dead_code: true, - if_return: true, - join_vars: true, - evaluate: true, - drop_debugger: true, - drop_console: false - }, - sourceMap: true -}; diff --git a/project_template/package.json b/project_template/package.json index b4c0e41..51bfb25 100644 --- a/project_template/package.json +++ b/project_template/package.json @@ -58,7 +58,6 @@ "eslint-plugin-compat": "^1.0.4", "eslint-plugin-prettier": "^2.1.2", "eslint-plugin-react": "^7.1.0", - "extract-text-webpack-plugin": "4.0.0-beta.0", "file-loader": "^1.1.11", "html-webpack-plugin": "^3.2.0", "husky": "^0.14.3", @@ -67,11 +66,12 @@ "karma-chai": "^0.1.0", "karma-chai-plugins": "^0.9.0", "karma-chrome-launcher": "^2.2.0", + "karma-junit-reporter": "^1.2.0", "karma-mocha": "^1.3.0", "karma-mocha-reporter": "^2.2.0", - "karma-junit-reporter": "^1.2.0", "karma-webpack": "^4.0.0-beta.0", "lint-staged": "^8.1.5", + "mini-css-extract-plugin": "^0.6.0", "mocha": "^6.0.0", "nightwatch": "^1.0.0", "node-sass": "^4.5.3", diff --git a/project_template/src/index.html b/project_template/src/index.html index 0427c1a..bc1735b 100644 --- a/project_template/src/index.html +++ b/project_template/src/index.html @@ -18,19 +18,7 @@ document.querySelector('html').className = 'ios-standalone'; } - -<% for (var css of htmlWebpackPlugin.files.css.filter((file) => file.indexOf("shell") != -1)) { %> - -<% } %>
-<% for (var chunk in htmlWebpackPlugin.files.chunks) { %> - -<% } %> -<% for (var css of htmlWebpackPlugin.files.css.filter((file) => file.indexOf("styles") != -1)) { %> - - <% } %>