From 0c47c38c90504b39cc6538f0a4f226d40f29e878 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Tue, 16 Feb 2021 23:39:28 -0800 Subject: [PATCH] Disable html generation --- packages/webapp/package.json | 1 - packages/webapp/webpack.prod.js | 17 +++++++++-------- yarn.lock | 19 +++++++++++++------ 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/packages/webapp/package.json b/packages/webapp/package.json index d4ce3058..0a985528 100644 --- a/packages/webapp/package.json +++ b/packages/webapp/package.json @@ -28,7 +28,6 @@ "eslint-plugin-react-hooks": "^4.2.0", "file-loader": "^6.2.0", "html-webpack-dynamic-env-plugin": "^0.0.2", - "html-webpack-plugin": "^4.5.0", "sass-loader": "^10.1.0", "style-loader": "^2.0.0", "ts-loader": "^8.0.11", diff --git a/packages/webapp/webpack.prod.js b/packages/webapp/webpack.prod.js index b2f4da21..56bafcf4 100644 --- a/packages/webapp/webpack.prod.js +++ b/packages/webapp/webpack.prod.js @@ -13,13 +13,14 @@ module.exports = merge(common, { minimize: true }, plugins: [ - new CompressionPlugin(), - new HtmlWebpackPlugin({ - template: path.join(__dirname, 'public/index.html'), - templateParameters: { - PUBLIC_URL: process.env.PUBLIC_URL ? process.env.PUBLIC_URL : 'https://www.wisemapping.com' - }, - base: process.env.PUBLIC_URL ? process.env.PUBLIC_URL : 'https://www.wisemapping.com' - }) + new CompressionPlugin() + // , + // new HtmlWebpackPlugin({ + // template: path.join(__dirname, 'public/index.html'), + // templateParameters: { + // PUBLIC_URL: process.env.PUBLIC_URL ? process.env.PUBLIC_URL : 'https://www.wisemapping.com' + // }, + // base: process.env.PUBLIC_URL ? process.env.PUBLIC_URL : 'https://www.wisemapping.com' + // }) ] }); diff --git a/yarn.lock b/yarn.lock index e1279947..590e99d5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1195,14 +1195,10 @@ version "1.2.1" resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.1.tgz#283f669ff76d7b8260df8ab7a4262cc83d988256" -"@types/node@*", "@types/node@>= 8": +"@types/node@*", "@types/node@14", "@types/node@>= 8": version "14.14.28" resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.28.tgz#cade4b64f8438f588951a6b35843ce536853f25b" -"@types/node@^15": - version "14.14.27" - resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.27.tgz#c7127f8da0498993e13b1a42faf1303d3110d2f2" - "@types/normalize-package-data@^2.4.0": version "2.4.0" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" @@ -4012,6 +4008,17 @@ html-webpack-plugin@^4.5.0: tapable "^1.1.3" util.promisify "1.0.0" +html-webpack-plugin@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/html-webpack-plugin/-/html-webpack-plugin-5.1.0.tgz#1c11bbe01ab9d1262c4b601edebcf394364b1f60" + dependencies: + "@types/html-minifier-terser" "^5.0.0" + html-minifier-terser "^5.0.1" + loader-utils "^2.0.0" + lodash "^4.17.20" + pretty-error "^2.1.1" + tapable "^2.0.0" + htmlparser2@^3.10.1: version "3.10.1" resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.10.1.tgz#bd679dc3f59897b6a34bb10749c855bb53a9392f" @@ -7509,7 +7516,7 @@ tapable@^1.0.0, tapable@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2" -tapable@^2.1.1, tapable@^2.2.0: +tapable@^2.0.0, tapable@^2.1.1, tapable@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.0.tgz#5c373d281d9c672848213d0e037d1c4165ab426b"