-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于按版本打包 #449
Comments
坐等楼主更新 |
坐等更新 |
@zuiidea 您好,使用verson功能报错,我是用脚手架新生产的一个项目,然后引入了您写的verson.js,依赖包js-beauty也对应安装了,在roadhog.js做了如下配置,
但是即使报错,dist能够按照版本分开了,不知道是什么原因。 |
Closed
@951565664 目录不要有中文 |
目前master分支已不支持按版本打包,最后支持的版本应该是4.3.9 |
Closed
是为何取消了按版本打包呢 |
@harekuer 貌似是从roadhog换成umi的结果 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
npm run build:new
依据
package.json
中的version字段打包到相应目录,如:当前"version":"4.3.0"
,将会package.json
中的version字段为4.3.1dist
根目录,版本相关文件生成到dist/4.3.1
目录dist/index.html
将会引用dist/4.3.1/index.js
,所以ngnix配置的时候只需指向dist/index.html
dist/4.3.1/index.html
,这样做为了在打包4.3.2后发现有错误,还想快速切换至4.3.1,只需将
dist/4.3.1/index.html
覆盖至dist/index.html
version.js做的事
The text was updated successfully, but these errors were encountered: