Skip to content

Commit 8e19cbf

Browse files
committed
feat: support webpack processContent hook for CSS embedded in JS
- Add `compilation.hooks.processContent` support to minimize CSS content embedded in JS bundles (text/style/css-style-sheet export types) - Extract `transformSource` method to share minification logic, error handling, source map validation, and warning filtering between processAssets and processContent paths - Extract `createWorkerFactory` for reusable lazy worker pool management
1 parent e9ee2d2 commit 8e19cbf

File tree

8 files changed

+519
-220
lines changed

8 files changed

+519
-220
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"standard-version": "^9.5.0",
105105
"sugarss": "^5.0.0",
106106
"typescript": "^5.5.4",
107-
"webpack": "^5.93.0"
107+
"webpack": "https://pkg.pr.new/webpack@11c12b8"
108108
},
109109
"peerDependencies": {
110110
"webpack": "^5.0.0"

0 commit comments

Comments
 (0)