Skip to content

Commit d849df4

Browse files
author
piexlMax(奇淼
committed
代码定位功能默认关闭。
1 parent a2269bc commit d849df4

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

web/.env.development

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ VITE_SERVER_PORT = 8888
44
VITE_BASE_API = /api
55
VITE_FILE_API = /api
66
VITE_BASE_PATH = http://127.0.0.1
7+
VITE_POSITION = close
78
VITE_EDITOR = vscode
89
// VITE_EDITOR = webstorm 如果使用webstorm开发且要使用dom定位到代码行功能 请先自定添加 webstorm到环境变量 再将VITE_EDITOR值修改为webstorm
910
// 如果使用docker-compose开发模式,设置为下面的地址或本机主机IP
10-
//VITE_BASE_PATH = http://177.7.0.12
11+
//VITE_BASE_PATH = http://177.7.0.12

web/vite.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ export default ({
8282
esbuild,
8383
optimizeDeps,
8484
plugins: [
85-
GvaPositionServer(),
86-
GvaPosition(),
85+
process.env.VITE_POSITION === 'open' && GvaPositionServer(),
86+
process.env.VITE_POSITION === 'open' && GvaPosition(),
8787
legacyPlugin({
8888
targets: ['Android > 39', 'Chrome >= 60', 'Safari >= 10.1', 'iOS >= 10.3', 'Firefox >= 54', 'Edge >= 15'],
8989
}),

web/vitePlugin/svgIcon/svgIcon.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ function findSvgFile(dir) {
1616
.toString()
1717
.replace(clearReturn, '')
1818
.replace(svgTitle, ($1, $2) => {
19-
// console.log(++i)
20-
// console.log(dirent.name)
2119
let width = 0
2220
let height = 0
2321
let content = $2.replace(clearHeightWidth, (s1, s2, s3) => {
@@ -42,8 +40,6 @@ function findSvgFile(dir) {
4240
export const svgBuilder = (path) => {
4341
if (path === '') return
4442
const res = findSvgFile(path)
45-
// console.log(res.length)
46-
// const res = []
4743
return {
4844
name: 'svg-transform',
4945
transformIndexHtml(html) {

0 commit comments

Comments
 (0)