Skip to content

Commit

Permalink
Merge pull request #11 from principalstudio/Applelo/issue10
Browse files Browse the repository at this point in the history
Clean/Adjust package.json
  • Loading branch information
Applelo authored Feb 1, 2021
2 parents 926653a + 2b6f694 commit 8a88924
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,5 @@ src/test.ts
src/*.js
__tests__/CHANGELOG-heavy.md
lib
test/dist/
test/dist/
package-lock.json
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
[![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/)



# HTML Webpack Inject Preload
A [HTML Webpack Plugin](https://github.com/jantimon/html-webpack-plugin) for injecting <link rel='preload'>
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)

This plugin allows to add preload links anywhere you want.

# Installation

You need to have HTMLWebpackPlugin v5 to make this plugin work.
You need to have HTMLWebpackPlugin v4 or v5 to make this plugin work.

```
npm i -D @principalstudio/html-webpack-inject-preload
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@principalstudio/html-webpack-inject-preload",
"version": "1.2.0",
"description": "A html webpack plugin for injecting <link rel='preload'>",
"version": "1.2.1",
"description": "A HTML Webpack plugin for injecting <link rel='preload'>",
"main": "lib/main.js",
"types": "lib/main.d.ts",
"scripts": {
Expand All @@ -12,7 +12,7 @@
"prepublishOnly": "npm run build"
},
"engines": {
"node": "12.18.3"
"node": ">=10.23"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -45,5 +45,9 @@
"typescript": "^4.1.3",
"url-loader": "^4.1.1",
"webpack": "^5.17.0"
},
"peerDependencies": {
"webpack": "^4.0.0 || ^5.0.0",
"html-webpack-plugin": "4.0.0 || next"
}
}

0 comments on commit 8a88924

Please sign in to comment.