html-rspack-plugin
Advanced tools
+18
-16
| { | ||
| "name": "html-rspack-plugin", | ||
| "version": "6.1.4", | ||
| "version": "6.1.5", | ||
| "license": "MIT", | ||
@@ -13,2 +13,13 @@ "description": "Simplifies creation of HTML files to serve your Rspack bundles", | ||
| ], | ||
| "scripts": { | ||
| "bump": "npx bumpp", | ||
| "posttest": "tsc", | ||
| "commit": "git-cz", | ||
| "build-examples": "node examples/build-examples.js", | ||
| "test": "jest --runInBand --verbose --coverage", | ||
| "test-watch": "jest --runInBand --watch", | ||
| "puml": "npx puml generate flow.puml -o flow.png", | ||
| "release": "standard-version" | ||
| }, | ||
| "packageManager": "pnpm@10.24.0", | ||
| "dependencies": { | ||
@@ -33,7 +44,7 @@ "@rspack/lite-tapable": "^1.0.1" | ||
| "webpack": "^5.96.1", | ||
| "webpack-cli": "4.10.0", | ||
| "webpack-cli": "6.0.1", | ||
| "webpack-recompilation-simulator": "3.2.0" | ||
| }, | ||
| "peerDependencies": { | ||
| "@rspack/core": "0.x || 1.x" | ||
| "@rspack/core": "^1.0.0 || ^2.0.0-0" | ||
| }, | ||
@@ -51,5 +62,5 @@ "peerDependenciesMeta": { | ||
| ], | ||
| "bugs": "https://github.com/rspack-contrib/html-rspack-plugin/issues", | ||
| "homepage": "https://github.com/rspack-contrib/html-rspack-plugin", | ||
| "repository": "https://github.com/rspack-contrib/html-rspack-plugin.git", | ||
| "bugs": "https://github.com/rstackjs/html-rspack-plugin/issues", | ||
| "homepage": "https://github.com/rstackjs/html-rspack-plugin", | ||
| "repository": "https://github.com/rstackjs/html-rspack-plugin.git", | ||
| "engines": { | ||
@@ -71,12 +82,3 @@ "node": ">=16.0.0" | ||
| "registry": "https://registry.npmjs.org/" | ||
| }, | ||
| "scripts": { | ||
| "posttest": "tsc", | ||
| "commit": "git-cz", | ||
| "build-examples": "node examples/build-examples.js", | ||
| "test": "jest --runInBand --verbose --coverage", | ||
| "test-watch": "jest --runInBand --watch", | ||
| "puml": "npx puml generate flow.puml -o flow.png", | ||
| "release": "standard-version" | ||
| } | ||
| } | ||
| } |
+8
-8
@@ -90,6 +90,6 @@ # html-rspack-plugin | ||
| | **`filename`** | `{String\|Function}` | `'index.html'` | The file to write the HTML to. Defaults to `index.html`. You can specify a subdirectory here too (eg: `assets/admin.html`). The `[name]` placeholder will be replaced with the entry name. Can also be a function e.g. `(entryName) => entryName + '.html'`. | | ||
| | **`template`** | `{String}` | `` | Rspack relative or absolute path to the template. By default it will use `src/index.ejs` if it exists. Please see the [docs](https://github.com/rspack-contrib/html-rspack-plugin/blob/master/docs/template-option.md) for details | | ||
| | **`templateContent`** | `{string\|Function\|false}` | false | Can be used instead of `template` to provide an inline template - please read the [Writing Your Own Templates](https://github.com/rspack-contrib/html-rspack-plugin#writing-your-own-templates) section | | ||
| | **`templateParameters`** | `{Boolean\|Object\|Function}` | `false` | Allows to overwrite the parameters used in the template - see [example](https://github.com/rspack-contrib/html-rspack-plugin/tree/master/examples/template-parameters) | | ||
| | **`inject`** | `{Boolean\|String}` | `true` | `true \|\| 'head' \|\| 'body' \|\| false` Inject all assets into the given `template` or `templateContent`. When passing `'body'` all javascript resources will be placed at the bottom of the body element. `'head'` will place the scripts in the head element. Passing `true` will add it to the head/body depending on the `scriptLoading` option. Passing `false` will disable automatic injections. - see the [inject:false example](https://github.com/rspack-contrib/html-rspack-plugin/tree/master/examples/custom-insertion-position) | | ||
| | **`template`** | `{String}` | `` | Rspack relative or absolute path to the template. By default it will use `src/index.ejs` if it exists. Please see the [docs](https://github.com/rstackjs/html-rspack-plugin/blob/master/docs/template-option.md) for details | | ||
| | **`templateContent`** | `{string\|Function\|false}` | false | Can be used instead of `template` to provide an inline template - please read the [Writing Your Own Templates](https://github.com/rstackjs/html-rspack-plugin#writing-your-own-templates) section | | ||
| | **`templateParameters`** | `{Boolean\|Object\|Function}` | `false` | Allows to overwrite the parameters used in the template - see [example](https://github.com/rstackjs/html-rspack-plugin/tree/master/examples/template-parameters) | | ||
| | **`inject`** | `{Boolean\|String}` | `true` | `true \|\| 'head' \|\| 'body' \|\| false` Inject all assets into the given `template` or `templateContent`. When passing `'body'` all javascript resources will be placed at the bottom of the body element. `'head'` will place the scripts in the head element. Passing `true` will add it to the head/body depending on the `scriptLoading` option. Passing `false` will disable automatic injections. - see the [inject:false example](https://github.com/rstackjs/html-rspack-plugin/tree/master/examples/custom-insertion-position) | | ||
| | **`publicPath`** | `{String\|'auto'}` | `'auto'` | The publicPath used for script and link tags | | ||
@@ -156,3 +156,3 @@ | **`scriptLoading`** | `{'blocking'\|'defer'\|'module'\|'systemjs-module'}` | `'defer'` | Modern browsers support non blocking javascript loading (`'defer'`) to improve the page startup performance. Setting to `'module'` adds attribute [`type="module"`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#applying_the_module_to_your_html). This also implies "defer", since modules are automatically deferred. | | ||
| Details of other template loaders are [documented here](https://github.com/rspack-contrib/html-rspack-plugin/blob/master/docs/template-option.md). | ||
| Details of other template loaders are [documented here](https://github.com/rstackjs/html-rspack-plugin/blob/master/docs/template-option.md). | ||
@@ -424,5 +424,5 @@ ```js | ||
| The [lib/hooks.js](https://github.com/rspack-contrib/html-rspack-plugin/blob/master/lib/hooks.js) contains all information about which values are passed. | ||
| The [lib/hooks.js](https://github.com/rstackjs/html-rspack-plugin/blob/master/lib/hooks.js) contains all information about which values are passed. | ||
| [](https://github.com/rspack-contrib/html-rspack-plugin/blob/master/flow.puml) | ||
| [](https://github.com/rstackjs/html-rspack-plugin/blob/master/flow.puml) | ||
@@ -543,2 +543,2 @@ #### `beforeAssetTagGeneration` hook | ||
| You're free to contribute to this project by submitting [issues](https://github.com/rspack-contrib/html-rspack-plugin/issues) and/or [pull requests](https://github.com/rspack-contrib/html-rspack-plugin/pulls). This project is test-driven, so keep in mind that every change and new feature should be covered by tests. | ||
| You're free to contribute to this project by submitting [issues](https://github.com/rstackjs/html-rspack-plugin/issues) and/or [pull requests](https://github.com/rstackjs/html-rspack-plugin/pulls). This project is test-driven, so keep in mind that every change and new feature should be covered by tests. |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
0
-100%109894
-0.01%