打包配置
Showing
dist/bundle.js.map
deleted
100644 → 0
This diff is collapsed.
This diff is collapsed.
output.js.map
0 → 100644
This diff is collapsed.
package-lock.json
0 → 100644
This diff is collapsed.
... | ... | @@ -5,7 +5,12 @@ |
"main": "index.ts", | ||
"scripts": { | ||
"dev": "node ./scripts/devServer -p 9016", | ||
"build": "webpack" | ||
"build": "webpack --config webpack.prod.js", | ||
"handleRes": "node scripts/delRel && node scripts/copyRes && node scripts/imageMin", | ||
"upload": "node scripts/upload", | ||
"prod": "npm run handleRes && npm run upload && npm run buildTS", | ||
"buildWeb": "npm run handleRes && node scripts/upload 1", | ||
"buildTS": "webpack --config webpack.prod.js && node scripts/mergeJs" | ||
}, | ||
"keywords": [ | ||
"three", | ||
... | ... | @@ -16,14 +21,23 @@ |
"dependencies": { | ||
"@types/three": "^0.144.0", | ||
"oimo": "^1.0.9", | ||
"three": "^0.144.0", | ||
"ts-loader": "^9.3.1", | ||
"typescript": "^4.7.4", | ||
"webpack": "^5.74.0", | ||
"webpack-cli": "^4.10.0", | ||
"webpack-dev-server": "^4.9.3" | ||
"three": "^0.144.0" | ||
}, | ||
"devDependencies": { | ||
"webpack-merge": "^5.8.0" | ||
"ali-oss": "^4.11.4", | ||
"chalk": "^2.3.0", | ||
"co": "^4.6.0", | ||
"del": "2.2.1", | ||
"imagemin": "^7.0.1", | ||
"imagemin-mozjpeg": "^8.0.0", | ||
"imagemin-pngquant": "^8.0.0", | ||
"pngquant": "^4.0.0", | ||
"progress": "^2.0.0", | ||
"ts-loader": "^4.0.0", | ||
"typescript": "^4.8.3", | ||
"webpack": "^4.1.0", | ||
"webpack-cli": "^3.1.1", | ||
"webpack-dev-server": "^3.1.0", | ||
"webpack-merge": "^4.1.2" | ||
} | ||
} |
project.json
0 → 100644
scripts/copyRes.js
0 → 100644
scripts/createHtml.js
0 → 100644
scripts/delRel.js
0 → 100644
scripts/imageMin.js
0 → 100644
scripts/mergeJs.js
0 → 100644
scripts/upload.js
0 → 100644
scripts/uploadSingleJs.js
0 → 100644
This diff is collapsed.
webpack.prod.js
0 → 100644
yarn-error.log
deleted
100644 → 0
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment