Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions .github/workflows/build.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/deploy.js

This file was deleted.

3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@ node_modules/
package-lock.json
.DS_Store
tmp/
Cargo.lock
index.node
target/
Empty file removed .no-postinstall
Empty file.
18 changes: 0 additions & 18 deletions Cargo.toml

This file was deleted.

6 changes: 1 addition & 5 deletions lib/html.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
let minifyHtml;
try {
minifyHtml = require('../index.node');
} catch (error) {
}
const minifyHtml = require('@minify-html/node');
const { inExcludes } = require('./util');

module.exports = function(str, path, config) {
Expand Down
12 changes: 3 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
"postinstall.js"
],
"scripts": {
"build": "cargo-cp-artifact --artifact cdylib html-minify index.node -- cargo build --message-format=json-render-diagnostics",
"build-release": "npm run build -- --release",
"lint": "eslint index.js lib",
"postinstall": "node postinstall.js"
"lint": "eslint index.js lib"
},
"repository": "next-theme/hexo-optimize",
"keywords": [
Expand All @@ -30,16 +27,13 @@
},
"homepage": "https://github.com/next-theme/hexo-optimize#readme",
"dependencies": {
"@minify-html/node": "^0.16.4",
"bluebird": "^3.7.2",
"cargo-cp-artifact": "^0.1",
"lightningcss": "^1.24.1",
"micromatch": "^4.0.5",
"terser": "^5.30.3"
},
"devDependencies": {
"@next-theme/eslint-config": "0.0.3",
"aws-sdk": "^2.1599.0",
"eslint": "8.57.0",
"lighthouse": "^9.6.7"
"@next-theme/eslint-config": "0.0.3"
}
}
104 changes: 0 additions & 104 deletions postinstall.js

This file was deleted.

83 changes: 0 additions & 83 deletions src/lib.rs

This file was deleted.

Loading