项目作者: avine

项目描述 :
Front end developer playground
高级语言: TypeScript
项目地址: git://github.com/avine/web-explorer.git
创建时间: 2018-04-13T11:43:41Z
项目社区:https://github.com/avine/web-explorer

开源协议:MIT License

下载


WebExplorer

Front end developer playground

npm scripts usage

For development:

  1. # Build frontend and backend in watch mode
  2. npm run watch # aka: npm run watch:front & npm run watch:back
  3. # Start backend web server in watch mode
  4. npm run start:watch

For production:

  1. # Build frontend and backend
  2. npm run build # aka: npm run build:front & npm run build:back
  3. # Start backend web server
  4. npm start

To mock the backend web server:

  1. # Only watch (or build) the front
  2. npm run watch:front # or: npm run build:front
  3. # Start webpack-dev-server instead of the real backend web server
  4. npm run start:mock

Service worker

Open src/front/service-worker.js and update the cache version each time you upload a new version of the App.

  1. const cacheVersion = 1;

HTML base setting

For production:

Open src/front/index.html and set the base href according to your public path. Then, run the npm scripts as described above.

  1. <base href="/">