fix: 修复staging环境下babel env不正确导致的打包问题#91
Open
alwaystom wants to merge 1 commit intoyangzongzhuan:masterfrom
Open
fix: 修复staging环境下babel env不正确导致的打包问题#91alwaystom wants to merge 1 commit intoyangzongzhuan:masterfrom
alwaystom wants to merge 1 commit intoyangzongzhuan:masterfrom
Conversation
Author
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
vue-cli 在非自带mode下,如"staging",会出现BABEL_ENV不遵循NODE_ENV的情况,见issue: vuejs/vue-cli#6877, 导致出现staging mode下打包会因为dynamic-import-plugin的原因无法完整打包,通过显式指定BABEL_ENV可以解决该问题