@lynx-js/template-webpack-plugin-canary 0.8.1-canary-20250630-124048cc → 0.8.1
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.1
|
|
3
|
+
## 0.8.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
type InlineChunkConfig =
|
|
34
34
|
| boolean
|
|
35
35
|
| InlineChunkTest
|
|
36
|
-
| { enable?: boolean |
|
|
36
|
+
| { enable?: boolean | 'auto'; test: InlineChunkTest };
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
```ts
|
|
40
|
-
import { defineConfig } from
|
|
40
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
41
41
|
|
|
42
42
|
export default defineConfig({
|
|
43
43
|
output: {
|
|
44
44
|
inlineScripts: ({ name, size }) => {
|
|
45
|
-
return name.includes(
|
|
45
|
+
return name.includes('foo') && size < 1000;
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
});
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
example:
|
|
93
93
|
|
|
94
94
|
```js
|
|
95
|
-
import { defineConfig } from
|
|
95
|
+
import { defineConfig } from '@lynx-js/rspeedy';
|
|
96
96
|
|
|
97
97
|
export default defineConfig({
|
|
98
98
|
output: {
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
188
188
|
|
|
189
189
|
```js
|
|
190
|
-
import { LynxTemplatePlugin } from
|
|
190
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
191
191
|
|
|
192
192
|
new LynxTemplatePlugin({
|
|
193
193
|
defaultOverflowVisible: false,
|
|
@@ -206,10 +206,10 @@
|
|
|
206
206
|
- 1abf8f0: Add `entryNames` parameter to `beforeEncode` hook.
|
|
207
207
|
|
|
208
208
|
```js
|
|
209
|
-
import { LynxTemplatePlugin } from
|
|
209
|
+
import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
|
|
210
210
|
|
|
211
211
|
const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
|
|
212
|
-
hooks.beforeEncode.tap(
|
|
212
|
+
hooks.beforeEncode.tap('MyPlugin', ({ entryNames }) => {
|
|
213
213
|
console.log(entryNames);
|
|
214
214
|
});
|
|
215
215
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/template-webpack-plugin-canary",
|
|
3
|
-
"version": "0.8.1
|
|
3
|
+
"version": "0.8.1",
|
|
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.99.9",
|
|
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"
|