From 37374cc55d40b43c1ce2b18a4101e10c02996aa1 Mon Sep 17 00:00:00 2001 From: Adam Yost Date: Fri, 1 May 2020 10:27:37 -0400 Subject: [PATCH 1/4] record changes in last release --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e69de29..7179233 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +# 0.0.2 +## Build tool and readme changes +No functional difference, just pinning dependencies and updating readme + +# 0.0.1 +## Initial Release From 6c293ba8f6ece9e9ff33f22aea9a10e25e6c4983 Mon Sep 17 00:00:00 2001 From: Adam Yost Date: Fri, 1 May 2020 10:27:57 -0400 Subject: [PATCH 2/4] add webpack 3 tests, just to ensure compatibility --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 169b713..e341c55 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ node_js: - "14" env: + - WEBPACK_VERSION=3 HTML_PLUGIN_VERSION=3 - WEBPACK_VERSION=4 HTML_PLUGIN_VERSION=3 - WEBPACK_VERSION=4 HTML_PLUGIN_VERSION=4 @@ -25,7 +26,7 @@ deploy: node: "10" tags: true branch: master - if: env(WEBPACK_VERSION)=4 AND env(HTML_PLUGIN_VERSION)=3 + if: env(WEBPACK_VERSION)=4 AND env(HTML_PLUGIN_VERSION)=4 provider: npm email: "swimmadude66@gmail.com" api_key: From 85f4b89838333e46ecb3335bfd21d66f4d26b67f Mon Sep 17 00:00:00 2001 From: Adam Yost Date: Fri, 1 May 2020 10:34:24 -0400 Subject: [PATCH 3/4] no webpack 3 until I can find replacement for mini-css-extract-plugin --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e341c55..ebd79f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ node_js: - "14" env: - - WEBPACK_VERSION=3 HTML_PLUGIN_VERSION=3 + # - WEBPACK_VERSION=3 HTML_PLUGIN_VERSION=3 - WEBPACK_VERSION=4 HTML_PLUGIN_VERSION=3 - WEBPACK_VERSION=4 HTML_PLUGIN_VERSION=4 From 27a63fac6e3cc156660b67f4be16508bbdc2ca9a Mon Sep 17 00:00:00 2001 From: Adam Yost Date: Thu, 4 Feb 2021 00:38:17 -0500 Subject: [PATCH 4/4] verify support for webpack 5 and html-webpack-plugin 5 --- .gitignore | 3 ++- .travis.yml | 8 +++++--- CHANGELOG.md | 4 ++++ LICENSE | 2 +- package.json | 19 +++++++++---------- spec/index.spec.ts | 5 ++++- 6 files changed, 25 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 6b1de18..6560cc8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ node_modules/ dist/ package-lock.json -spec/test_dist \ No newline at end of file +spec/test_dist +package-lock.json diff --git a/.travis.yml b/.travis.yml index ebd79f7..fa8934e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,13 +9,15 @@ env: # - WEBPACK_VERSION=3 HTML_PLUGIN_VERSION=3 - WEBPACK_VERSION=4 HTML_PLUGIN_VERSION=3 - WEBPACK_VERSION=4 HTML_PLUGIN_VERSION=4 + - WEBPACK_VERSION=4 HTML_PLUGIN_VERSION=5 + - WEBPACK_VERSION=5 HTML_PLUGIN_VERSION=5 -install: +install: - npm install - npm install -D webpack@$WEBPACK_VERSION || true - npm install -D html-webpack-plugin@$HTML_PLUGIN_VERSION || true -script: +script: - npm test - npm run build @@ -30,4 +32,4 @@ deploy: provider: npm email: "swimmadude66@gmail.com" api_key: - secure: GufE1aXORf6PuzRKBcNpxWhXnfcttsqCQj12R1npVdDF2njc+2FzgYGUAergyh/gkLlWAgcV7DbF1P4qt4jIFRdqXoUtQTI7N1uH7Ay/TdztPxVYancMXoJG/O4e0R2cnfkTCkzRgJF4P3B/WWK5Mq60lLdROrITLsUIwnNI3R88zHNr8u7yjF0RyidpMwTRw9rOyES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mWaF9tvJ4o+3LlJOHQYlmlQLUesypRM0savz2glVI8Zon+k3iJbAhFMTpELqw40sj4lgJUaXe9TVvbGP1PflrRPm8= diff --git a/CHANGELOG.md b/CHANGELOG.md index 7179233..6f4dc60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.0.0 - Webpack 5 support +- verify support for webpack5 and html-webpack-plugin 5 + + # 0.0.2 ## Build tool and readme changes No functional difference, just pinning dependencies and updating readme diff --git a/LICENSE b/LICENSE index 78246ce..917609d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 Adam Yost +Copyright (c) 2021 Adam Yost Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package.json b/package.json index 408ecad..7ed45aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "html-webpack-skip-assets-plugin", - "version": "0.0.2", + "version": "1.0.0", "description": "a plugin for html-webpack-plugin to skip adding certain output files to the html", "main": "dist/plugin.js", "scripts": { @@ -20,18 +20,17 @@ "author": "swimmadude66", "license": "MIT", "devDependencies": { - "@types/chai": "4.2.11", - "@types/mocha": "7.0.2", + "@types/chai": "4.2.14", + "@types/mocha": "8.2.0", "@types/node": "13.13.4", - "@types/webpack": "4.41.12", "chai": "4.2.0", - "css-loader": "3.5.3", + "css-loader": "5.0.1", "html-webpack-plugin": ">=3.2.0", - "mini-css-extract-plugin": "0.9.0", - "mocha": "7.1.2", - "rimraf": "2.6.3", - "ts-node": "8.9.1", - "typescript": "3.8.3", + "mini-css-extract-plugin": "1.3.5", + "mocha": "8.2.1", + "rimraf": "3.0.2", + "ts-node": "9.1.1", + "typescript": "4.1.3", "webpack": ">=3.0.0" }, "dependencies": { diff --git a/spec/index.spec.ts b/spec/index.spec.ts index ddd8fd2..f935222 100644 --- a/spec/index.spec.ts +++ b/spec/index.spec.ts @@ -41,7 +41,7 @@ const webpackDevOptions: webpack.Configuration = { use: [{ loader: MiniCssExtractPlugin.loader },{ - loader: 'css-loader' + loader: 'css-loader' }] } ] @@ -75,6 +75,9 @@ function getOutput(): string { return htmlContents; } +console.log('\nWEBPACK VERSION', webpack.version,'\n'); +console.log('\nHTML-WEBPACK_PLUGIN VERSION', HtmlWebpackPlugin.version,'\n'); + describe('HtmlWebpackSkipAssetsPlugin Development Mode', () => { afterEach((done) => {