-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature(env): support multiple env build
- Loading branch information
Showing
7 changed files
with
26 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Base api | ||
VUE_APP_BASE_API = '/dev-api' | ||
|
||
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, | ||
# to control whether the babel-plugin-dynamic-import-node plugin is enabled. | ||
# It only does one thing by converting all import() to require(). | ||
# This configuration can significantly increase the speed of hot updates, | ||
# when you have a large number of pages. | ||
# Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js | ||
|
||
VUE_CLI_BABEL_TRANSPILE_MODULES = true |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Base api | ||
VUE_APP_BASE_API = '/prod-api' |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Set to production for building optimization | ||
NODE_ENV = production | ||
|
||
# Base api | ||
VUE_APP_BASE_API = '/stage-api' | ||
|
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 |
---|---|---|
|
@@ -5,11 +5,12 @@ | |
"author": "Chong Guo <[email protected]>", | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"build:prod": "vue-cli-service build", | ||
"build:stage": "vue-cli-service build --mode staging", | ||
"lint": "vue-cli-service lint", | ||
"svg": "vsvg -s ./src/icons/svg -t ./src/icons/components --ext ts --es6", | ||
"test:e2e": "vue-cli-service test:e2e", | ||
"test:unit": "vue-cli-service test:unit" | ||
"test:unit": "jest --clearCache && vue-cli-service test:unit" | ||
}, | ||
"dependencies": { | ||
"@tinymce/tinymce-vue": "^2.0.0", | ||
|
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