移除webpack,替换为vite,删除弃用文件 (#1)

Co-authored-by: xief <1789784602@qq.com>
Reviewed-on: MES/CADViewComponent#1
This commit is contained in:
2024-05-23 09:45:08 +08:00
parent f60054ca19
commit f22f1acd52
80 changed files with 434 additions and 7920 deletions

View File

@@ -5,11 +5,9 @@
"main": "src/index.ts",
"private": true,
"scripts": {
"t": "tsc --noEmit -w",
"build": "tsc",
"umd": "webpack --config ./config/webpack.umd.ts",
"dev": "webpack-dev-server --config ./config/webpack.view.ts",
"rmtype": "ts-node ./utils/rmtype.ts"
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"repository": {
"type": "git",
@@ -18,25 +16,10 @@
"author": "cx",
"license": "ISC",
"devDependencies": {
"@types/hard-source-webpack-plugin": "^1.0.1",
"@types/node": "^13.13.52",
"@types/three": "^0.103.2",
"@types/uglifyjs-webpack-plugin": "^1.1.0",
"@types/webpack": "^4.41.32",
"@types/webpack-env": "^1.18.0",
"awesome-typescript-loader": "^5.2.1",
"cache-loader": "^4.1.0",
"fork-ts-checker-webpack-plugin": "^4.1.6",
"hard-source-webpack-plugin": "^0.13.1",
"html-webpack-plugin": "^4.5.2",
"ts-loader": "^7.0.5",
"ts-node": "^8.10.2",
"typescript": "^4.5.5",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack": "^5.75.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.11.1",
"webpack-merge": "^5.8.0"
"typescript": "^5.0.2",
"vite": "^4.4.5"
},
"dependencies": {
"@jscad/modeling": "^2.11.0",