Skip to content

Commit 8a88924

Browse files
authored
Merge pull request #11 from principalstudio/Applelo/issue10
Clean/Adjust package.json
2 parents 926653a + 2b6f694 commit 8a88924

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
[![npm](https://img.shields.io/npm/dw/@principalstudio/html-webpack-inject-preload)](https://www.npmjs.com/package/@principalstudio/html-webpack-inject-preload) [![node-current](https://img.shields.io/node/v/@principalstudio/html-webpack-inject-preload)](https://nodejs.org/)
2+
3+
4+
15
# HTML Webpack Inject Preload
2-
A [HTML Webpack Plugin](https://github.com/jantimon/html-webpack-plugin) for injecting <link rel='preload'>
6+
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)
37

48
This plugin allows to add preload links anywhere you want.
59

610
# Installation
711

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

1014
```
1115
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)