mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
perf: webpack config
This commit is contained in:
21
package.json
21
package.json
@@ -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"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user