Skip to content

Commit 49ab367

Browse files
committed
Clean/Adjust package.json
Fixes #10
1 parent 926653a commit 49ab367

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,5 @@ src/test.ts
9898
src/*.js
9999
__tests__/CHANGELOG-heavy.md
100100
lib
101-
test/dist/
101+
test/dist/
102+
package-lock.json

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
[![npm](https://img.shields.io/npm/dw/@principalstudio/html-webpack-inject-preload)](https://www.npmjs.com/package/@principalstudio/html-webpack-inject-preload)
2+
3+
[![node-current](https://img.shields.io/node/v/@principalstudio/html-webpack-inject-preload)](https://nodejs.org/)
4+
5+
6+
17
# HTML Webpack Inject Preload
2-
A [HTML Webpack Plugin](https://github.com/jantimon/html-webpack-plugin) for injecting <link rel='preload'>
8+
A [HTML Webpack Plugin](https://github.com/jantimon/html-webpack-plugin) for injecting [<link rel='preload'>](https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content)
39

410
This plugin allows to add preload links anywhere you want.
511

612
# Installation
713

8-
You need to have HTMLWebpackPlugin v5 to make this plugin work.
14+
You need to have HTMLWebpackPlugin v4 or v5 to make this plugin work.
915

1016
```
1117
npm i -D @principalstudio/html-webpack-inject-preload

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@principalstudio/html-webpack-inject-preload",
3-
"version": "1.2.0",
4-
"description": "A html webpack plugin for injecting <link rel='preload'>",
3+
"version": "1.2.1",
4+
"description": "A HTML Webpack plugin for injecting <link rel='preload'>",
55
"main": "lib/main.js",
66
"types": "lib/main.d.ts",
77
"scripts": {
@@ -12,7 +12,7 @@
1212
"prepublishOnly": "npm run build"
1313
},
1414
"engines": {
15-
"node": "12.18.3"
15+
"node": ">=10.23"
1616
},
1717
"repository": {
1818
"type": "git",
@@ -45,5 +45,9 @@
4545
"typescript": "^4.1.3",
4646
"url-loader": "^4.1.1",
4747
"webpack": "^5.17.0"
48+
},
49+
"peerDependencies": {
50+
"webpack": "^4.0.0 || ^5.0.0",
51+
"html-webpack-plugin": "4.0.0 || next"
4852
}
4953
}

0 commit comments

Comments
 (0)