@lynx-js/template-webpack-plugin-canary 0.10.0-canary-20251212-9c715ffe → 0.10.0
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.0
|
|
3
|
+
## 0.10.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -98,16 +98,16 @@
|
|
|
98
98
|
type InlineChunkConfig =
|
|
99
99
|
| boolean
|
|
100
100
|
| InlineChunkTest
|
|
101
|
-
| { enable?: boolean |
|
|
101
|
+
| { enable?: boolean | 'auto'; test: InlineChunkTest };
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
```ts
|
|
105
|
-
import { defineConfig } from
|
|
105
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
106
106
|
|
|
107
107
|
export default defineConfig({
|
|
108
108
|
output: {
|
|
109
109
|
inlineScripts: ({ name, size }) => {
|
|
110
|
-
return name.includes(
|
|
110
|
+
return name.includes('foo') && size < 1000;
|
|
111
111
|
},
|
|
112
112
|
},
|
|
113
113
|
});
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
example:
|
|
158
158
|
|
|
159
159
|
```js
|
|
160
|
-
import { defineConfig } from
|
|
160
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
161
161
|
|
|
162
162
|
export default defineConfig({
|
|
163
163
|
output: {
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
253
253
|
|
|
254
254
|
```js
|
|
255
|
-
import { LynxTemplatePlugin } from
|
|
255
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
256
256
|
|
|
257
257
|
new LynxTemplatePlugin({
|
|
258
258
|
defaultOverflowVisible: false,
|
|
@@ -271,10 +271,10 @@
|
|
|
271
271
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
272
272
|
|
|
273
273
|
```js
|
|
274
|
-
import { LynxTemplatePlugin } from
|
|
274
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
275
275
|
|
|
276
276
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
277
|
-
hooks.beforeEncode.tap(
|
|
277
|
+
hooks.beforeEncode.tap('MyPlugin', ({ entryNames }) => {
|
|
278
278
|
console.log(entryNames);
|
|
279
279
|
});
|
|
280
280
|
```
|
package/package.json
CHANGED