-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(thme): 修改 ant-design-vue自定义主题在 build 之后无法覆盖成功的问题
- Loading branch information
白唯
committed
Oct 31, 2020
1 parent
023d4ee
commit 29a591d
Showing
14 changed files
with
57 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
NODE_ENV=development | ||
// VUE_APP_BASE_URL = //10.10.10.115:8002 | ||
VUE_APP_BASE_URL = //apitest.cuidc.net | ||
VUE_APP_BASE_EDITOR_URL = //editorapitest.cuidc.net | ||
VUE_APP_EDITOR_JS = //editortest.cuidc.net | ||
VUE_APP_UPLOADED_URL = //bus.cuidc.net/ | ||
VUE_APP_EDITOR_URL_AUTH = a453964db52ff10ad0a3adf4be4dd4e5 | ||
NODE_ENV=development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
NODE_ENV=production | ||
VUE_APP_BASE_URL = //apitest.cuidc.net | ||
VUE_APP_BASE_EDITOR_URL = //editorapitest.cuidc.net | ||
VUE_APP_UPLOADED_URL = //bus.cuidc.net/ | ||
VUE_APP_EDITOR_JS = //editortest.cuidc.net | ||
VUE_APP_EDITOR_URL_AUTH = 7f35b26c51e980153763ee996542f541 | ||
NODE_ENV=production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
NODE_ENV=production | ||
VUE_APP_BASE_URL = //api.cuidc.net | ||
VUE_APP_BASE_EDITOR_URL = //editorapi.cuidc.net | ||
VUE_APP_EDITOR_JS = //editor.cuidc.net | ||
VUE_APP_UPLOADED_URL = //bus-acc.cuidc.net/ | ||
VUE_APP_EDITOR_URL_AUTH = e3e5e9488f3e2e2857fc045b9c48566b | ||
|
||
|
||
|
||
NODE_ENV=production | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
module.exports = { | ||
presets: ['@vue/cli-plugin-babel/preset'], | ||
plugins: [['import', { libraryName: 'ant-design-vue', libraryDirectory: 'es', style: true }]] | ||
} | ||
module.exports = { | ||
presets: ['@vue/cli-plugin-babel/preset'] | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import { createApp } from 'vue' | ||
|
||
/** | ||
* @description 加载所有 Plugins | ||
* @param {ReturnType<typeofcreateApp>} app 整个应用的实例 | ||
*/ | ||
export function loadAllPlugins(app: ReturnType<typeof createApp>) { | ||
const files = require.context('.', true, /\.ts$/) | ||
files.keys().forEach(key => { | ||
if (key !== './index.ts') files(key).default(app) | ||
}) | ||
} | ||
import { createApp } from 'vue' | ||
|
||
/** | ||
* @description 加载所有 Plugins | ||
* @param {ReturnType<typeofcreateApp>} app 整个应用的实例 | ||
*/ | ||
export function loadAllPlugins(app: ReturnType<typeof createApp>) { | ||
const files = require.context('.', true, /\.ts$/) | ||
files.keys().forEach(key => { | ||
if (typeof files(key).default === 'function') { | ||
if (key !== './index.ts') files(key).default(app) | ||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters