@lynx-js/template-webpack-plugin-canary 0.8.6-canary-20250915-59a0d600 → 0.8.6
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 +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/template-webpack-plugin
|
|
2
2
|
|
|
3
|
-
## 0.8.6
|
|
3
|
+
## 0.8.6
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -66,16 +66,16 @@
|
|
|
66
66
|
type InlineChunkConfig =
|
|
67
67
|
| boolean
|
|
68
68
|
| InlineChunkTest
|
|
69
|
-
| { enable?: boolean |
|
|
69
|
+
| { enable?: boolean | 'auto'; test: InlineChunkTest };
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
```ts
|
|
73
|
-
import { defineConfig } from
|
|
73
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
74
74
|
|
|
75
75
|
export default defineConfig({
|
|
76
76
|
output: {
|
|
77
77
|
inlineScripts: ({ name, size }) => {
|
|
78
|
-
return name.includes(
|
|
78
|
+
return name.includes('foo') && size < 1000;
|
|
79
79
|
},
|
|
80
80
|
},
|
|
81
81
|
});
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
example:
|
|
126
126
|
|
|
127
127
|
```js
|
|
128
|
-
import { defineConfig } from
|
|
128
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
129
129
|
|
|
130
130
|
export default defineConfig({
|
|
131
131
|
output: {
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
221
221
|
|
|
222
222
|
```js
|
|
223
|
-
import { LynxTemplatePlugin } from
|
|
223
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
224
224
|
|
|
225
225
|
new LynxTemplatePlugin({
|
|
226
226
|
defaultOverflowVisible: false,
|
|
@@ -239,10 +239,10 @@
|
|
|
239
239
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
240
240
|
|
|
241
241
|
```js
|
|
242
|
-
import { LynxTemplatePlugin } from
|
|
242
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
243
243
|
|
|
244
244
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
245
|
-
hooks.beforeEncode.tap(
|
|
245
|
+
hooks.beforeEncode.tap('MyPlugin', ({ entryNames }) => {
|
|
246
246
|
console.log(entryNames);
|
|
247
247
|
});
|
|
248
248
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/template-webpack-plugin-canary",
|
|
3
|
-
"version": "0.8.6
|
|
3
|
+
"version": "0.8.6",
|
|
4
4
|
"description": "Simplifies creation of Lynx template files to serve your webpack bundles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@types/css-tree": "^2.3.10",
|
|
45
45
|
"@types/object.groupby": "^1.0.4",
|
|
46
46
|
"webpack": "^5.101.3",
|
|
47
|
-
"@lynx-js/
|
|
48
|
-
"@lynx-js/
|
|
47
|
+
"@lynx-js/test-tools": "0.0.0",
|
|
48
|
+
"@lynx-js/vitest-setup": "0.0.0"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=18"
|