diff --git a/Makefile b/Makefile index 5955ecfa4..d543256e4 100644 --- a/Makefile +++ b/Makefile @@ -10,16 +10,16 @@ WEB_PATH=$(BASE_PAH)/frontend SERVER_PATH=$(BASE_PAH)/backend MAIN= $(BASE_PAH)/cmd/server/main.go APP_NAME=1panel -ASSERT_PATH= $(BASE_PAH)/cmd/server/web/asserts +ASSERT_PATH= $(BASE_PAH)/cmd/server/web/assets -clean_asserts: +clean_assets: rm -rf $(ASSERT_PATH) upx_bin: upx $(BUILD_PATH)/$(APP_NAME) build_frontend: - cd $(WEB_PATH) && npm install && npm run build:dev + cd $(WEB_PATH) && npm install && npm run build:pro build_backend_on_linux: cd $(SERVER_PATH) \ @@ -35,4 +35,4 @@ build_backend_on_archlinux: build_all: build_frontend build_backend_on_linux -build_on_local: clean_asserts build_frontend build_backend_on_darwin upx_bin +build_on_local: clean_assets build_frontend build_backend_on_darwin upx_bin diff --git a/frontend/package.json b/frontend/package.json index aaae7881e..31ac769b5 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,14 +1,14 @@ { "name": "panel", "private": true, - "version": "0.0.1", + "version": "1.3", "description": "1Panel 前端", "scripts": { "dev": "vite", "serve": "vite", "build:dev": "vite build --mode development", "build:test": "vue-tsc --noEmit && vite build --mode test", - "build:pro": "vue-tsc --noEmit && vite build --mode production", + "build:pro": "vite build --mode production", "preview": "vite preview", "lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src", "lint:prettier": "prettier --write --loglevel warn \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"", @@ -95,7 +95,7 @@ "vue-tsc": "^0.29.8" }, "overrides": { - "esbuild":"npm:esbuild-wasm@latest" + "esbuild": "npm:esbuild-wasm@latest" }, "config": { "commitizen": {