@lynx-js/template-webpack-plugin-canary 0.9.2-canary-20251204-c475c1e3 → 0.9.2
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.2
|
|
3
|
+
## 0.9.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -92,16 +92,16 @@
|
|
|
92
92
|
type InlineChunkConfig =
|
|
93
93
|
| boolean
|
|
94
94
|
| InlineChunkTest
|
|
95
|
-
| { enable?: boolean |
|
|
95
|
+
| { enable?: boolean | 'auto'; test: InlineChunkTest };
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
```ts
|
|
99
|
-
import { defineConfig } from
|
|
99
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
100
100
|
|
|
101
101
|
export default defineConfig({
|
|
102
102
|
output: {
|
|
103
103
|
inlineScripts: ({ name, size }) => {
|
|
104
|
-
return name.includes(
|
|
104
|
+
return name.includes('foo') && size < 1000;
|
|
105
105
|
},
|
|
106
106
|
},
|
|
107
107
|
});
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
example:
|
|
152
152
|
|
|
153
153
|
```js
|
|
154
|
-
import { defineConfig } from
|
|
154
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
155
155
|
|
|
156
156
|
export default defineConfig({
|
|
157
157
|
output: {
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
247
247
|
|
|
248
248
|
```js
|
|
249
|
-
import { LynxTemplatePlugin } from
|
|
249
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
250
250
|
|
|
251
251
|
new LynxTemplatePlugin({
|
|
252
252
|
defaultOverflowVisible: false,
|
|
@@ -265,10 +265,10 @@
|
|
|
265
265
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
266
266
|
|
|
267
267
|
```js
|
|
268
|
-
import { LynxTemplatePlugin } from
|
|
268
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
269
269
|
|
|
270
270
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
271
|
-
hooks.beforeEncode.tap(
|
|
271
|
+
hooks.beforeEncode.tap('MyPlugin', ({ entryNames }) => {
|
|
272
272
|
console.log(entryNames);
|
|
273
273
|
});
|
|
274
274
|
```
|
package/package.json
CHANGED