@lynx-js/template-webpack-plugin-canary 0.9.1-canary-20251030-b736b6e2 → 0.9.1
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 +8 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/template-webpack-plugin
|
|
2
2
|
|
|
3
|
-
## 0.9.1
|
|
3
|
+
## 0.9.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -82,16 +82,16 @@
|
|
|
82
82
|
type InlineChunkConfig =
|
|
83
83
|
| boolean
|
|
84
84
|
| InlineChunkTest
|
|
85
|
-
| { enable?: boolean |
|
|
85
|
+
| { enable?: boolean | 'auto'; test: InlineChunkTest };
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
```ts
|
|
89
|
-
import { defineConfig } from
|
|
89
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
90
90
|
|
|
91
91
|
export default defineConfig({
|
|
92
92
|
output: {
|
|
93
93
|
inlineScripts: ({ name, size }) => {
|
|
94
|
-
return name.includes(
|
|
94
|
+
return name.includes('foo') && size < 1000;
|
|
95
95
|
},
|
|
96
96
|
},
|
|
97
97
|
});
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
example:
|
|
142
142
|
|
|
143
143
|
```js
|
|
144
|
-
import { defineConfig } from
|
|
144
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
145
145
|
|
|
146
146
|
export default defineConfig({
|
|
147
147
|
output: {
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
237
237
|
|
|
238
238
|
```js
|
|
239
|
-
import { LynxTemplatePlugin } from
|
|
239
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
240
240
|
|
|
241
241
|
new LynxTemplatePlugin({
|
|
242
242
|
defaultOverflowVisible: false,
|
|
@@ -255,10 +255,10 @@
|
|
|
255
255
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
256
256
|
|
|
257
257
|
```js
|
|
258
|
-
import { LynxTemplatePlugin } from
|
|
258
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
259
259
|
|
|
260
260
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
261
|
-
hooks.beforeEncode.tap(
|
|
261
|
+
hooks.beforeEncode.tap('MyPlugin', ({ entryNames }) => {
|
|
262
262
|
console.log(entryNames);
|
|
263
263
|
});
|
|
264
264
|
```
|
package/package.json
CHANGED