项目作者: dandre3000

项目描述 :
Node app template that uses webpack configured for separate frontend and backend bundles
高级语言: JavaScript
项目地址: git://github.com/dandre3000/express-pack.git
创建时间: 2020-09-17T07:30:02Z
项目社区:https://github.com/dandre3000/express-pack

开源协议:The Unlicense

下载


express-pack

Node app template that uses webpack configured for separate frontend and backend bundles.

  • Webpack configured to build separate frontend and backend bundles
  • webpack-dev-middleware and webpack-hot-middleware for hot module reloading
  • Node.js backend with Express server
  • Babel compiler
  • ESLint linter

    Installation

    Fork/copy the repository then install dependencies.
    1. npm i

    Development setup

    Build development server and automatically rebuild every time server dependencies are modified.
    1. npm run build-dev-server
    Start dev-server that automatically restarts after every server build and uses hot module reloading for client changes.
    1. npm run nodemon
    Run commands in separate processes.

    Production setup

    Build then start server.
    1. npm run build
    2. npm start