@lynx-js/template-webpack-plugin-canary 0.8.3-canary-20250801-22ca433e → 0.8.3
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.8.3
|
|
3
|
+
## 0.8.3
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
type InlineChunkConfig =
|
|
46
46
|
| boolean
|
|
47
47
|
| InlineChunkTest
|
|
48
|
-
| { enable?: boolean |
|
|
48
|
+
| { enable?: boolean | 'auto'; test: InlineChunkTest };
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
```ts
|
|
52
|
-
import { defineConfig } from
|
|
52
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
53
53
|
|
|
54
54
|
export default defineConfig({
|
|
55
55
|
output: {
|
|
56
56
|
inlineScripts: ({ name, size }) => {
|
|
57
|
-
return name.includes(
|
|
57
|
+
return name.includes('foo') && size < 1000;
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
60
|
});
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
example:
|
|
105
105
|
|
|
106
106
|
```js
|
|
107
|
-
import { defineConfig } from
|
|
107
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
108
108
|
|
|
109
109
|
export default defineConfig({
|
|
110
110
|
output: {
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
200
200
|
|
|
201
201
|
```js
|
|
202
|
-
import { LynxTemplatePlugin } from
|
|
202
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
203
203
|
|
|
204
204
|
new LynxTemplatePlugin({
|
|
205
205
|
defaultOverflowVisible: false,
|
|
@@ -218,10 +218,10 @@
|
|
|
218
218
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
219
219
|
|
|
220
220
|
```js
|
|
221
|
-
import { LynxTemplatePlugin } from
|
|
221
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
222
222
|
|
|
223
223
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
224
|
-
hooks.beforeEncode.tap(
|
|
224
|
+
hooks.beforeEncode.tap('MyPlugin', ({ entryNames }) => {
|
|
225
225
|
console.log(entryNames);
|
|
226
226
|
});
|
|
227
227
|
```
|
package/package.json
CHANGED