@lynx-js/template-webpack-plugin-canary 0.10.1-canary-20251226-f8b5be81 → 0.10.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.10.1
|
|
3
|
+
## 0.10.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -106,16 +106,16 @@
|
|
|
106
106
|
type InlineChunkConfig =
|
|
107
107
|
| boolean
|
|
108
108
|
| InlineChunkTest
|
|
109
|
-
| { enable?: boolean |
|
|
109
|
+
| { enable?: boolean | 'auto'; test: InlineChunkTest };
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
```ts
|
|
113
|
-
import { defineConfig } from
|
|
113
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
114
114
|
|
|
115
115
|
export default defineConfig({
|
|
116
116
|
output: {
|
|
117
117
|
inlineScripts: ({ name, size }) => {
|
|
118
|
-
return name.includes(
|
|
118
|
+
return name.includes('foo') && size < 1000;
|
|
119
119
|
},
|
|
120
120
|
},
|
|
121
121
|
});
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
example:
|
|
166
166
|
|
|
167
167
|
```js
|
|
168
|
-
import { defineConfig } from
|
|
168
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
169
169
|
|
|
170
170
|
export default defineConfig({
|
|
171
171
|
output: {
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
261
261
|
|
|
262
262
|
```js
|
|
263
|
-
import { LynxTemplatePlugin } from
|
|
263
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
264
264
|
|
|
265
265
|
new LynxTemplatePlugin({
|
|
266
266
|
defaultOverflowVisible: false,
|
|
@@ -279,10 +279,10 @@
|
|
|
279
279
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
280
280
|
|
|
281
281
|
```js
|
|
282
|
-
import { LynxTemplatePlugin } from
|
|
282
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
283
283
|
|
|
284
284
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
285
|
-
hooks.beforeEncode.tap(
|
|
285
|
+
hooks.beforeEncode.tap('MyPlugin', ({ entryNames }) => {
|
|
286
286
|
console.log(entryNames);
|
|
287
287
|
});
|
|
288
288
|
```
|
package/package.json
CHANGED