Commit 8e19cbf
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 management1 parent e9ee2d2 commit 8e19cbf
File tree
8 files changed
+519
-220
lines changed- src
- test
- __snapshots__
- fixtures
- types
8 files changed
+519
-220
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments