File tree 3 files changed +19
-0
lines changed
3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ ports :
2
+ - port : 8001
3
+ onOpen : open-preview
4
+ tasks :
5
+ - before : >
6
+ export DEV_HOST=$(gp url 8001)
7
+ init : npm install
8
+ command : npm start
Original file line number Diff line number Diff line change @@ -100,6 +100,12 @@ See [i18n](http://ant.design/docs/react/i18n).
100
100
101
101
## ⌨️ Development
102
102
103
+ Use Gitpod, a free online dev environment for GitHub.
104
+
105
+ [ ![ Open in Gitpod] ( https://gitpod.io/button/open-in-gitpod.svg )] ( https://gitpod.io/#https://github.com/ant-design/ant-design )
106
+
107
+ Or clone locally:
108
+
103
109
``` bash
104
110
$ git clone
[email protected] :ant-design/ant-design.git
105
111
$ cd ant-design
Original file line number Diff line number Diff line change @@ -123,6 +123,11 @@ module.exports = {
123
123
return config ;
124
124
} ,
125
125
126
+ devServerConfig : {
127
+ public : process . env . DEV_HOST || 'localhost' ,
128
+ disableHostCheck : ! ! process . env . DEV_HOST ,
129
+ } ,
130
+
126
131
htmlTemplateExtraData : {
127
132
isDev,
128
133
usePreact,
You can’t perform that action at this time.
0 commit comments