Skip to content

Commit

Permalink
feat(deps): bump html-webpack-plugin to support getCompilationHooks (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy authored Oct 18, 2024
1 parent e2c60ce commit 0eb8b9d
Show file tree
Hide file tree
Showing 5 changed files with 132 additions and 30 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-singers-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@modern-js/uni-builder': patch
---

feat(deps): bump html-webpack-plugin to support getCompilationHooks
2 changes: 1 addition & 1 deletion packages/cli/uni-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"cssnano": "6.0.1",
"glob": "^9.3.5",
"html-minifier-terser": "^7.2.0",
"html-webpack-plugin": "5.5.3",
"html-webpack-plugin": "5.6.2",
"lodash": "^4.17.21",
"picocolors": "^1.0.1",
"postcss": "^8.4.35",
Expand Down
79 changes: 79 additions & 0 deletions packages/cli/uni-builder/tests/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4626,6 +4626,36 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
},
},
HtmlWebpackPlugin {
"options": {
"base": false,
"cache": true,
"chunks": [
"index",
],
"chunksSortMode": "auto",
"compile": true,
"entryName": "index",
"excludeChunks": [],
"favicon": false,
"filename": "html/index/index.html",
"hash": false,
"inject": "head",
"meta": {
"charset": {
"charset": "UTF-8",
},
"viewport": "width=device-width, initial-scale=1.0",
},
"minify": false,
"publicPath": "auto",
"scriptLoading": "defer",
"showErrors": true,
"template": "",
"templateContent": "<!doctype html><html><head></head><body><div id=\\"root\\"></div></body></html>",
"templateParameters": [Function],
"title": "",
"xhtml": false,
},
"userOptions": {
"chunks": [
"index",
Expand Down Expand Up @@ -5896,6 +5926,55 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
},
},
HtmlWebpackPlugin {
"options": {
"base": false,
"cache": true,
"chunks": [
"index",
],
"chunksSortMode": "auto",
"compile": true,
"entryName": "index",
"excludeChunks": [],
"favicon": false,
"filename": "html/index/index.html",
"hash": false,
"inject": "head",
"meta": {
"charset": {
"charset": "UTF-8",
},
"viewport": "width=device-width, initial-scale=1.0",
},
"minify": {
"collapseWhitespace": true,
"keepClosingSlash": true,
"minifyCSS": true,
"minifyJS": {
"format": {
"ascii_only": true,
},
"mangle": {
"safari10": true,
},
},
"minifyURLs": true,
"removeComments": false,
"removeEmptyAttributes": true,
"removeRedundantAttributes": true,
"removeScriptTypeAttributes": true,
"removeStyleLinkTypeAttributes": true,
"useShortDoctype": true,
},
"publicPath": "auto",
"scriptLoading": "defer",
"showErrors": true,
"template": "",
"templateContent": "<!doctype html><html><head></head><body><div id=\\"root\\"></div></body></html>",
"templateParameters": [Function],
"title": "",
"xhtml": false,
},
"userOptions": {
"chunks": [
"index",
Expand Down
30 changes: 30 additions & 0 deletions packages/cli/uni-builder/tests/__snapshots__/minimize.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,36 @@ exports[`html minify > should not apply html minify in production when disableMi
},
},
HtmlWebpackPlugin {
"options": {
"base": false,
"cache": true,
"chunks": [
"index",
],
"chunksSortMode": "auto",
"compile": true,
"entryName": "index",
"excludeChunks": [],
"favicon": false,
"filename": "html/index/index.html",
"hash": false,
"inject": "head",
"meta": {
"charset": {
"charset": "UTF-8",
},
"viewport": "width=device-width, initial-scale=1.0",
},
"minify": false,
"publicPath": "auto",
"scriptLoading": "defer",
"showErrors": true,
"template": "",
"templateContent": "<!doctype html><html><head></head><body><div id=\\"root\\"></div></body></html>",
"templateParameters": [Function],
"title": "",
"xhtml": false,
},
"userOptions": {
"chunks": [
"index",
Expand Down
46 changes: 17 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0eb8b9d

Please sign in to comment.