Skip to content

Commit

Permalink
1.3.3 upgrade [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
bddjr committed Jan 17, 2025
1 parent aa3395c commit 0b654ec
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ vite v6.0.7 building for production...
45 modules transformed.
rendering chunks (1)...

vite-plugin-singlefile-compression 1.3.2 building...
vite-plugin-singlefile-compression 1.3.3 building...

file:///d/bddjr/Desktop/code/js/vite-plugin-singlefile-compression/test/dist/index.html
101.56 KiB -> 46.74 KiB
file:///D:/bddjr/Desktop/code/js/vite-plugin-singlefile-compression/test/dist/index.html
101.56 KiB -> 46.32 KiB

Finish.

dist/index.html 47.86 kB
built in 634ms
dist/index.html 47.42 kB
built in 696ms
```
![](effect.jpg)
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-singlefile-compression",
"version": "1.3.2",
"version": "1.3.3",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
Expand Down Expand Up @@ -42,7 +42,7 @@
"dependencies": {
"@types/html-minifier-terser": "^7.0.2",
"@types/node": "^22.9.3",
"base128-ascii": "^2.0.3",
"base128-ascii": "^2.1.0",
"esbuild": "^0.24.0",
"html-minifier-terser": "^7.2.0",
"mime": "^4.0.4",
Expand Down
4 changes: 2 additions & 2 deletions src/getVersion.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fs from 'fs'
import path from 'path'
import { fileURLToPath } from 'url'

export const { version } = JSON.parse(
fs.readFileSync(
path.join(import.meta.dirname, "../package.json")
fileURLToPath(import.meta.resolve("../package.json"))
).toString()
) as { version: string }
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function setConfig(config: UserConfig) {
async function generateBundle(bundle: OutputBundle, config: ResolvedConfig, options: innerOptions) {
console.log(pc.cyan('\n\nvite-plugin-singlefile-compression ' + version) + pc.green(' building...'))

const distURL = pathToFileURL(path.resolve(config.build.outDir)).href + '/'
const distURL = pathToFileURL(config.build.outDir).href + '/'

const globalDelete = new Set<string>()
const globalDoNotDelete = new Set<string>()
Expand Down

0 comments on commit 0b654ec

Please sign in to comment.