mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
docs: add some annotation
This commit is contained in:
parent
a4d305868f
commit
3981c63e24
23
index.html
23
index.html
@ -82,6 +82,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
// 此代码仅用于开发环境的友好提示,项目打包前请去掉这段js代码 This code is only used as a friendly reminder of the development environment, please remove this js code before packaging the project
|
||||||
window.onload = function () {
|
window.onload = function () {
|
||||||
(function () {
|
(function () {
|
||||||
const ua = navigator.userAgent.toLowerCase();
|
const ua = navigator.userAgent.toLowerCase();
|
||||||
@ -97,16 +98,18 @@
|
|||||||
|
|
||||||
const el = document.querySelector("._develop");
|
const el = document.querySelector("._develop");
|
||||||
|
|
||||||
if (browser && version >= 90) {
|
if (el) {
|
||||||
let success =
|
if (browser && version >= 90) {
|
||||||
document.createTextNode("当前浏览器版本很适合开发!!! 😃");
|
let success =
|
||||||
el.appendChild(success);
|
document.createTextNode("当前浏览器版本很适合开发!!! 😃");
|
||||||
} else {
|
el.appendChild(success);
|
||||||
let warn = document.createTextNode(
|
} else {
|
||||||
"当前浏览器版本不适合开发,建议使用最新版本的谷歌或者火狐浏览器!!!😯"
|
let warn = document.createTextNode(
|
||||||
);
|
"当前浏览器版本不适合开发,建议使用最新版本的谷歌或者火狐浏览器!!!😯"
|
||||||
el.appendChild(warn);
|
);
|
||||||
el.style.color = "red";
|
el.appendChild(warn);
|
||||||
|
el.style.color = "red";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return Sys;
|
return Sys;
|
||||||
})();
|
})();
|
||||||
|
1
package-lock.json
generated
1
package-lock.json
generated
@ -65,6 +65,7 @@
|
|||||||
"postcss": "^8.2.6",
|
"postcss": "^8.2.6",
|
||||||
"postcss-import": "^14.0.0",
|
"postcss-import": "^14.0.0",
|
||||||
"prettier": "^2.3.2",
|
"prettier": "^2.3.2",
|
||||||
|
"rimraf": "^3.0.2",
|
||||||
"sass": "^1.38.0",
|
"sass": "^1.38.0",
|
||||||
"sass-loader": "^12.1.0",
|
"sass-loader": "^12.1.0",
|
||||||
"typescript": "^4.2.4",
|
"typescript": "^4.2.4",
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "cross-env --max_old_space_size=4096 vite",
|
"dev": "cross-env --max_old_space_size=4096 vite",
|
||||||
"serve": "cross-env --max_old_space_size=4096 vite",
|
"serve": "cross-env --max_old_space_size=4096 vite",
|
||||||
"build": "cross-env vite build",
|
"build": "rimraf dist && cross-env vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"preview:build": "npm run build && vite preview",
|
"preview:build": "npm run build && vite preview",
|
||||||
"lint": "eslint --ext .js,.jsx,.vue,.ts,.tsx src",
|
"lint": "eslint --ext .js,.jsx,.vue,.ts,.tsx src",
|
||||||
@ -76,6 +76,7 @@
|
|||||||
"postcss": "^8.2.6",
|
"postcss": "^8.2.6",
|
||||||
"postcss-import": "^14.0.0",
|
"postcss-import": "^14.0.0",
|
||||||
"prettier": "^2.3.2",
|
"prettier": "^2.3.2",
|
||||||
|
"rimraf": "^3.0.2",
|
||||||
"sass": "^1.38.0",
|
"sass": "^1.38.0",
|
||||||
"sass-loader": "^12.1.0",
|
"sass-loader": "^12.1.0",
|
||||||
"typescript": "^4.2.4",
|
"typescript": "^4.2.4",
|
||||||
|
BIN
public/pay.jpg
BIN
public/pay.jpg
Binary file not shown.
Before Width: | Height: | Size: 91 KiB |
Binary file not shown.
Before Width: | Height: | Size: 148 KiB |
@ -84,6 +84,7 @@ export default ({ command }: ConfigEnv): UserConfigExport => {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
|
sourcemap: false,
|
||||||
brotliSize: false,
|
brotliSize: false,
|
||||||
// 消除打包大小超过500kb警告
|
// 消除打包大小超过500kb警告
|
||||||
chunkSizeWarningLimit: 2000
|
chunkSizeWarningLimit: 2000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user