8000 debug cdn · pycoder404/blog-vue@794fe22 · GitHub
[go: up one dir, main page]

Skip to content

Commit 794fe22

Browse files
committed
debug cdn
1 parent 5fc5967 commit 794fe22

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

.env.production

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# just a flag
2-
NODE_ENV = 'production'
2+
NODE_ENV = 'development'
33

44
# base api
5-
VUE_APP_BASE_API = 'http://123.57.53.141:8080'
5+
VUE_APP_BASE_API = 'http://10.89.228.206:28088'
66

7-
VUE_APP_GITHUB_CLIENTID='ed02b9b9c2673b64d007'
7+
# github login client id
8+
VUE_APP_GITHUB_CLIENTID='aa6d9aa35a3d63374015'

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@
1010
},
1111
"dependencies": {
1212
"@element-plus/icons-vue": "^2.0.6",
13-
"@highlightjs/vue-plugin": "^2.1.0",
1413
"axios": "^0.26.1",
1514
"babel-plugin-transform-remove-console": "^6.9.4",
1615
"core-js": "^3.8.3",
1716
"element-plus": "^2.2.21",
1817
"express": "^4.18.2",
1918
"highlight.js": "^11.5.0",
20-
"highlightjs": "^9.16.2",
2119
"js-cookie": "^3.0.1",
2220
"jsonwebtoken": "^8.5.1",
2321
"marked": "^4.1.0",

public/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
77
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8+
<link href="https://cdn.bootcdn.net/ajax/libs/element-plus/2.2.21/index.css" rel="stylesheet">
89
<title><%= htmlWebpackPlugin.options.title %></title>
910
</head>
1011
<body>
1112
<noscript>
1213
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
1314
</noscript>
15+
<script src="https://cdn.bootcdn.net/ajax/libs/vue/3.2.13/vue.global.js"></script>
16+
<script src="https://cdn.bootcdn.net/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
17+
<script src="https://cdn.bootcdn.net/ajax/libs/element-plus/2.2.21/index.full.js"></script>
1418
<div id="app"></div>
1519
<!-- built files will be auto injected -->
1620
</body>

src/layout/components/MainHeader.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@
5454
},
5555
data() {
5656
return {
57-
activeIndex: ref('1'),
58-
activeIndex2: ref('2')
59-
6057
}
6158
6259
},

vue.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
const { defineConfig } = require('@vue/cli-service')
22
module.exports = defineConfig({
3-
transpileDependencies: true
3+
transpileDependencies: true,
4+
configureWebpack: {
5+
externals:{
6+
vue:'Vue',
7+
'element-plus':'ElementPlus',
8+
'highlight.js':'hljs'
9+
}
10+
}
411
})

0 commit comments

Comments
 (0)
0