@lynx-js/template-webpack-plugin-canary 0.6.4 → 0.6.5-canary-20250312-315ba3b7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -3
- package/lib/LynxTemplatePlugin.js +10 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lynx-js/template-webpack-plugin
|
|
2
2
|
|
|
3
|
+
## 0.6.5-canary-20250312061257-315ba3b7fac7872884edcdd5ef3e6d6230bbe115
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- The code of lazy bundle should be minimized. ([#177](https://github.com/lynx-family/lynx-stack/pull/177))
|
|
8
|
+
|
|
3
9
|
## 0.6.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -11,7 +17,7 @@
|
|
|
11
17
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
12
18
|
|
|
13
19
|
```js
|
|
14
|
-
import { LynxTemplatePlugin } from
|
|
20
|
+
import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
|
|
15
21
|
|
|
16
22
|
new LynxTemplatePlugin({
|
|
17
23
|
defaultOverflowVisible: false,
|
|
@@ -30,10 +36,10 @@
|
|
|
30
36
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
31
37
|
|
|
32
38
|
```js
|
|
33
|
-
import { LynxTemplatePlugin } from
|
|
39
|
+
import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
|
|
34
40
|
|
|
35
41
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
36
|
-
hooks.beforeEncode.tap(
|
|
42
|
+
hooks.beforeEncode.tap("MyPlugin", ({ entryNames }) => {
|
|
37
43
|
console.log(entryNames);
|
|
38
44
|
});
|
|
39
45
|
```
|
|
@@ -181,7 +181,16 @@ class LynxTemplatePluginImpl {
|
|
|
181
181
|
return this.#getAsyncFilenameTemplate(filename);
|
|
182
182
|
}));
|
|
183
183
|
});
|
|
184
|
-
compilation.hooks.processAssets.tapPromise(
|
|
184
|
+
compilation.hooks.processAssets.tapPromise({
|
|
185
|
+
name: this.name,
|
|
186
|
+
stage:
|
|
187
|
+
/**
|
|
188
|
+
* Generate the html after minification and dev tooling is done
|
|
189
|
+
* and source-map is generated
|
|
190
|
+
*/
|
|
191
|
+
compiler.webpack.Compilation
|
|
192
|
+
.PROCESS_ASSETS_STAGE_REPORT,
|
|
193
|
+
}, async () => {
|
|
185
194
|
await this.#generateAsyncTemplate(compilation);
|
|
186
195
|
});
|
|
187
196
|
});
|
package/package.json
CHANGED