Not meer another f2e build tool.
npm install -g Gon
Creates a new project, generates all the folders and files.
Should be used with
sudo, because the proxy server runs on port
Releases all the static files to the
static folder and all template files to the
The module file which will be imported (stylus) or required (js) to the entry file should be named start with the
// gon.config.jsmoduleexports =domain: 'gon.com'port: 8000// web server// request to the upper domain will be proxyed to these serversfe:local: '127.0.0.1:8000'dev: ''pre: ''pro: ''// api server// requests to `/api` will be prxoyed to these serversbe:dev: '127.0.0.1:80'pre: ''pro: ''proxy:// proxy a project's request to an outiside server'/data/sk/101010100.html': 'www.weather.com.cn:80'// proxy an outside request to project'2pmh9.free.natapp.cc': '/ping'// used for webpack to avoid compiling these filesexternals:react: 'React''react-dom': 'ReactDOM'
You can switch all these proxy setting on http://localhost/.
Most thanks to Webpack2.0rc and Gulp4.