@lynx-js/template-webpack-plugin-canary 0.9.0-canary-20250921-d0ef559f → 0.9.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 +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/template-webpack-plugin
|
|
2
2
|
|
|
3
|
-
## 0.9.0
|
|
3
|
+
## 0.9.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
type InlineChunkConfig =
|
|
77
77
|
| boolean
|
|
78
78
|
| InlineChunkTest
|
|
79
|
-
| { enable?: boolean |
|
|
79
|
+
| { enable?: boolean | 'auto'; test: InlineChunkTest };
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
```ts
|
|
83
|
-
import { defineConfig } from
|
|
83
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
84
84
|
|
|
85
85
|
export default defineConfig({
|
|
86
86
|
output: {
|
|
87
87
|
inlineScripts: ({ name, size }) => {
|
|
88
|
-
return name.includes(
|
|
88
|
+
return name.includes('foo') && size < 1000;
|
|
89
89
|
},
|
|
90
90
|
},
|
|
91
91
|
});
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
example:
|
|
136
136
|
|
|
137
137
|
```js
|
|
138
|
-
import { defineConfig } from
|
|
138
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
139
139
|
|
|
140
140
|
export default defineConfig({
|
|
141
141
|
output: {
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
231
231
|
|
|
232
232
|
```js
|
|
233
|
-
import { LynxTemplatePlugin } from
|
|
233
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
234
234
|
|
|
235
235
|
new LynxTemplatePlugin({
|
|
236
236
|
defaultOverflowVisible: false,
|
|
@@ -249,10 +249,10 @@
|
|
|
249
249
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
250
250
|
|
|
251
251
|
```js
|
|
252
|
-
import { LynxTemplatePlugin } from
|
|
252
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
253
253
|
|
|
254
254
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
255
|
-
hooks.beforeEncode.tap(
|
|
255
|
+
hooks.beforeEncode.tap('MyPlugin', ({ entryNames }) => {
|
|
256
256
|
console.log(entryNames);
|
|
257
257
|
});
|
|
258
258
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/template-webpack-plugin-canary",
|
|
3
|
-
"version": "0.9.0
|
|
3
|
+
"version": "0.9.0",
|
|
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/vitest-setup": "0.0.0",
|
|
48
|
+
"@lynx-js/test-tools": "0.0.0"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=18"
|