perf: webpack config

This commit is contained in:
linyuchen
2023-11-08 00:18:44 +08:00
parent 5c2612a7ef
commit 97a315cd8a
14 changed files with 2644 additions and 742 deletions

View File

@@ -2,10 +2,13 @@
"name": "llonebot",
"version": "1.0.0",
"description": "NTQQLiteLoaderOneBotApi",
"main": "index.js",
"main": "dist/main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc & tsc -p src/tsconfig.json",
"build": "npm run build-main && npm run build-preload && npm run build-renderer",
"build-main": "webpack --config webpack.main.config.js",
"build-preload": "webpack --config webpack.preload.config.js",
"build-renderer": "webpack --config webpack.renderer.config.js",
"build-mac": "npm run build && npm run deploy-mac",
"deploy-mac": "cp dist/* ~/Library/Containers/com.tencent.qq/Data/Documents/LiteLoaderQQNT/plugins/LLOnebot/",
"build-win": "npm run build && npm run deploy-win",
@@ -14,18 +17,16 @@
"author": "",
"license": "ISC",
"dependencies": {
"electron": "^27.0.2",
"express": "^4.18.2",
"path": "^0.12.7",
"stream": "^0.0.2",
"typescript": "^5.2.2",
"url": "^0.11.3"
"express": "^4.18.2"
},
"devDependencies": {
"electron": "^27.0.2",
"@babel/preset-env": "^7.23.2",
"@types/express": "^4.17.20",
"babel-loader": "^9.1.3",
"ts-loader": "^9.5.0",
"vite": "^4.5.0",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
"webpack-cli": "^5.1.4",
"typescript": "^5.2.2"
}
}