Skip to content

Commit

Permalink
Merge pull request #18 from Applelo/dev
Browse files Browse the repository at this point in the history
Version 2.0.5
  • Loading branch information
Applelo authored Jul 19, 2024
2 parents 5c9cb72 + a71f0cb commit 6a797c7
Show file tree
Hide file tree
Showing 13 changed files with 5,105 additions and 4,780 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/jsr.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# unplugin-inject-preload

![NPM Version](https://img.shields.io/npm/v/unplugin-inject-preload) [![jsr](https://img.shields.io/endpoint?url=https%3A%2F%2Fjsr-api.sxzz.moe%2Fbadge%2F%40applelo%2Funplugin-inject-preload)](https://jsr.io/@applelo/unplugin-inject-preload) [![node-current](https://img.shields.io/node/v/unplugin-inject-preload)](https://nodejs.org/) [![Coverage Status](https://coveralls.io/repos/github/Applelo/unplugin-inject-preload/badge.svg?branch=main)](https://coveralls.io/github/Applelo/unplugin-inject-preload?branch=main)
[![NPM Version](https://img.shields.io/npm/v/unplugin-inject-preload)](https://www.npmjs.com/package/unplugin-inject-preload) [![jsr](https://img.shields.io/endpoint?url=https%3A%2F%2Fjsr-api.sxzz.moe%2Fbadge%2F%40applelo%2Funplugin-inject-preload)](https://jsr.io/@applelo/unplugin-inject-preload) [![node-current](https://img.shields.io/node/v/unplugin-inject-preload)](https://nodejs.org/) [![Coverage Status](https://coveralls.io/repos/github/Applelo/unplugin-inject-preload/badge.svg?branch=main)](https://coveralls.io/github/Applelo/unplugin-inject-preload?branch=main)

This plugin adds preload links by getting output assets from the build tools you are using.

Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@applelo/unplugin-inject-preload",
"version": "2.0.4",
"version": "2.0.5",
"exports": {
".": "./src/index.ts",
"./vite": "./src/vite.ts",
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "unplugin-inject-preload",
"type": "module",
"version": "2.0.4",
"packageManager": "pnpm@9.2.0",
"version": "2.0.5",
"packageManager": "pnpm@9.5.0",
"description": "Inject <link rel='preload'> for Webpack/ViteJS",
"license": "MIT",
"homepage": "https://github.com/applelo/unplugin-inject-preload#readme",
Expand Down Expand Up @@ -89,28 +89,28 @@
},
"dependencies": {
"mime-types": "^2.1.35",
"unplugin": "^1.10.1",
"unplugin": "^1.11.0",
"webpack-sources": "^3.2.3"
},
"devDependencies": {
"@antfu/eslint-config": "2.11.5",
"@rspack/core": "^0.5.9",
"@antfu/eslint-config": "2.23.0",
"@rspack/core": "^0.7.5",
"@types/mime-types": "^2.1.4",
"@types/node": "^20.14.2",
"@types/node": "^20.14.11",
"@types/webpack-sources": "^3.2.3",
"@vitest/coverage-v8": "^1.6.0",
"css-loader": "^6.11.0",
"@vitest/coverage-v8": "^2.0.3",
"css-loader": "^7.1.2",
"esno": "^4.7.0",
"fast-glob": "^3.3.2",
"html-webpack-plugin": "^5.6.0",
"mini-css-extract-plugin": "^2.9.0",
"prettier": "^3.3.1",
"prettier": "^3.3.3",
"ts-loader": "^9.5.1",
"tsup": "^8.1.0",
"tsx": "^4.12.0",
"typescript": "^5.4.5",
"vite": "^5.2.12",
"vitest": "^1.6.0",
"webpack": "^5.91.0"
"tsup": "^8.2.0",
"tsx": "^4.16.2",
"typescript": "^5.5.3",
"vite": "^5.3.4",
"vitest": "^2.0.3",
"webpack": "^5.93.0"
}
}
2 changes: 1 addition & 1 deletion playground/rspack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"build": "rspack build"
},
"devDependencies": {
"@rspack/cli": "0.5.9",
"@rspack/cli": "0.7.5",
"unplugin-inject-preload": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion playground/rspack/rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const config = {
injectTo: 'custom',
files: [
{
outputMatch: /Roboto-[a-zA-Z]*.[a-z-0-9]*\.woff2$/,
outputMatch: /Roboto-(?:[^\n\rA-Za-z\u2028\u2029][-\da-z]*|[A-Za-z]+(?:[^\n\rA-Za-z\u2028\u2029][-\da-z]*)?)\.woff2$/,
},
{
outputMatch: /^(?!main).*\.(css|js)$/,
Expand Down
6 changes: 3 additions & 3 deletions playground/vitejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"preview": "vite preview"
},
"devDependencies": {
"typescript": "^5.4.3",
"typescript": "^5.5.3",
"unplugin-inject-preload": "workspace:*",
"vite": "^5.2.7",
"vite-plugin-inspect": "^0.8.3"
"vite": "^5.3.4",
"vite-plugin-inspect": "^0.8.5"
}
}
8 changes: 4 additions & 4 deletions playground/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"build": "webpack --config webpack.config.js --mode production"
},
"devDependencies": {
"css-loader": "^6.10.0",
"css-loader": "^7.1.2",
"html-webpack-plugin": "^5.6.0",
"mini-css-extract-plugin": "^2.8.1",
"mini-css-extract-plugin": "^2.9.0",
"ts-loader": "^9.5.1",
"typescript": "^5.4.3",
"typescript": "^5.5.3",
"unplugin-inject-preload": "workspace:*",
"webpack": "^5.91.0",
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4"
}
}
2 changes: 1 addition & 1 deletion playground/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = {
injectTo: 'custom',
files: [
{
outputMatch: /Roboto-[a-zA-Z]*.[a-z-0-9]*\.woff2$/,
outputMatch: /Roboto-(?:[^\n\rA-Za-z\u2028\u2029][-\da-z]*|[A-Za-z]+(?:[^\n\rA-Za-z\u2028\u2029][-\da-z]*)?)\.woff2$/,
},
{
outputMatch: /^(?!main).*\.(css|js)$/,
Expand Down
Loading

0 comments on commit 6a797c7

Please sign in to comment.