mirror of https://github.com/halo-dev/halo-admin
feat: support for configuring static resource paths.
parent
9d4a3cc2fb
commit
6a5aba4605
|
@ -0,0 +1,2 @@
|
||||||
|
NODE_ENV=production
|
||||||
|
PUBLIC_PATH=https://cdn.jsdelivr.net/npm/halo-admin@1.2.0/dist/
|
|
@ -0,0 +1,2 @@
|
||||||
|
NODE_ENV=development
|
||||||
|
PUBLIC_PATH=/
|
|
@ -132,11 +132,11 @@ postApi.permalinkType = {
|
||||||
},
|
},
|
||||||
DATE: {
|
DATE: {
|
||||||
type: 'DATE',
|
type: 'DATE',
|
||||||
text: '年月日型'
|
text: '年月型'
|
||||||
},
|
},
|
||||||
DAY: {
|
DAY: {
|
||||||
type: 'DAY',
|
type: 'DAY',
|
||||||
text: '年月型'
|
text: '年月日型'
|
||||||
},
|
},
|
||||||
ID: {
|
ID: {
|
||||||
type: 'ID',
|
type: 'ID',
|
||||||
|
|
|
@ -15,19 +15,19 @@ const assetsCDN = {
|
||||||
axios: 'axios',
|
axios: 'axios',
|
||||||
marked: 'marked'
|
marked: 'marked'
|
||||||
},
|
},
|
||||||
css: [
|
css: [],
|
||||||
],
|
|
||||||
js: [
|
js: [
|
||||||
'//cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js',
|
'https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js',
|
||||||
'//cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.min.js',
|
'https://cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.min.js',
|
||||||
'//cdn.jsdelivr.net/npm/vuex@3.1.1/dist/vuex.min.js',
|
'https://cdn.jsdelivr.net/npm/vuex@3.1.1/dist/vuex.min.js',
|
||||||
'//cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js',
|
'https://cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js',
|
||||||
'//cdn.jsdelivr.net/npm/marked@0.8.0/marked.min.js'
|
'https://cdn.jsdelivr.net/npm/marked@0.8.0/marked.min.js'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
// vue.config.js
|
// vue.config.js
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
publicPath: process.env.PUBLIC_PATH,
|
||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)
|
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)
|
||||||
|
|
Loading…
Reference in New Issue