@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.
Files changed (2) hide show
  1. package/CHANGELOG.md +8 -8
  2. 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-canary-20251212100312-9c715ffe5ee3eb738b473010f1b8151583fb9124
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 | "auto"; test: InlineChunkTest };
101
+ | { enable?: boolean | 'auto'; test: InlineChunkTest };
102
102
  ```
103
103
 
104
104
  ```ts
105
- import { defineConfig } from "@lynx-js/rspeedy";
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("foo") && size < 1000;
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 "@lynx-js/rspeedy";
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 "@lynx-js/template-webpack-plugin";
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 "@lynx-js/template-webpack-plugin";
274
+ import { LynxTemplatePlugin } from '@lynx-js/template-webpack-plugin';
275
275
 
276
276
  const hooks = LynxTemplatePlugin.getLynxTemplatePluginHooks(compilation);
277
- hooks.beforeEncode.tap("MyPlugin", ({ entryNames }) => {
277
+ hooks.beforeEncode.tap('MyPlugin', ({ entryNames }) => {
278
278
  console.log(entryNames);
279
279
  });
280
280
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/template-webpack-plugin-canary",
3
- "version": "0.10.0-canary-20251212-9c715ffe",
3
+ "version": "0.10.0",
4
4
  "description": "Simplifies creation of Lynx template files to serve your webpack bundles",
5
5
  "keywords": [
6
6
  "webpack",