This commit is contained in:
IndieKKY
2024-10-05 21:25:53 +08:00
parent c71e8e2eab
commit 77f6864f44
2 changed files with 9 additions and 1 deletions

8
fix.cjs Normal file
View File

@@ -0,0 +1,8 @@
console.log('fix.js loaded');
const fs = require('fs')
//copy index.html to sidepanel.html
fs.copyFileSync('./dist/index.html', './dist/sidepanel.html')
console.log('fix.js done');

View File

@@ -7,7 +7,7 @@
"main": "index.js",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "tsc && vite build && node fix.cjs",
"fix": "eslint --fix --quiet ."
},
"author": "IndieKKY",