Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.3 KB

README_code.md

File metadata and controls

30 lines (18 loc) · 1.3 KB

Expack - Express and Webpack Boilerplate

Expack is the bare-bones Express and Webpack boilerplate with ES6+ babel transpilation, ESLint linting, Hot Module Reloading, and Jest test framework enabled.

Expack has two build modes: Development and Production.

When you run npm run buildDev, Javascript, HTML, and CSS files are unminified and not uglified, meaning that you can easily inspect them in Chrome Dev Tools. Hot Module Reloading is enabled via webpack-dev-middleware and webpack-hot-middleware.

When you run npm run build, Javascript, HTML, and CSS files are all minified and uglified, and images are encoded as Base64 directly into your CSS file, which results in less calls to the server for image files.

Installation & Usage

git clone https://github.com/bengrunfeld/expack.git
cd expack
npm install

npm run buildDev        // for development
    // OR
npm run build

npm start               // navigate to localhost:8080 for local dev

For testing

npm test                // runs test
npm run coverage        // generates a coverage report

Security

Please ensure that your version of Node and NPM are up to date, and run npm audit after installation to ensure that no vulnerabilities exist. If they do, follow the audits instructions on how to resolve them.