- 从 package.json 移除 axios 依赖 - 重构 request.js:用原生 fetch API 替代 axios - 实现参数序列化、超时控制(AbortController)、统一响应处理 - 保持 http.get/http.post API 兼容,减少 bundle 体积 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
54 lines
1.2 KiB
JSON
54 lines
1.2 KiB
JSON
{
|
|
"name": "yilia",
|
|
"version": "5.1.1",
|
|
"description": "Hexo响应式主题",
|
|
"scripts": {
|
|
"dev": "webpack --progress --mode development",
|
|
"build": "webpack --mode production"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/litten/hexo-theme-yilia.git"
|
|
},
|
|
"keywords": [
|
|
"hexo",
|
|
"theme",
|
|
"blog"
|
|
],
|
|
"author": "litten",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"@babel/runtime": "^7.26.0",
|
|
"core-js": "^3.40.0",
|
|
"photoswipe": "^4.1.3",
|
|
"qrious": "^4.0.2",
|
|
"scrollreveal": "^4.0.9",
|
|
"vue": "^2.7.16"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.26.0",
|
|
"@babel/plugin-transform-runtime": "^7.25.9",
|
|
"@babel/preset-env": "^7.26.0",
|
|
"autoprefixer": "^10.4.20",
|
|
"babel-loader": "^9.2.1",
|
|
"clean-webpack-plugin": "^4.0.0",
|
|
"css-loader": "^7.1.2",
|
|
"html-webpack-plugin": "^5.6.3",
|
|
"less": "^4.2.2",
|
|
"less-loader": "^12.2.0",
|
|
"mini-css-extract-plugin": "^2.9.2",
|
|
"postcss": "^8.5.3",
|
|
"postcss-loader": "^8.1.1",
|
|
"terser-webpack-plugin": "^5.3.11",
|
|
"webpack": "^5.97.1",
|
|
"webpack-cli": "^5.1.4"
|
|
},
|
|
"browserslist": [
|
|
"> 1%",
|
|
"last 2 versions",
|
|
"not dead",
|
|
"iOS >= 10",
|
|
"Android >= 5"
|
|
]
|
|
}
|