Skip to content

Separate Webpack dev/prod configs. - SCSS sourcemaps/minification and es6 > es5 transpile

Notifications You must be signed in to change notification settings

nickbergquist/webpack-configs

Repository files navigation

Webpack separate configs.

Taking a DRY approach, using separate webpack configurations for dev/prod environments, merging into a common configuration.

  • webpack.common.js
  • webpack.dev
  • webpack.prod.js

Usage

Clone locally and install dependencies:

npm -i

Run scripts contained in package.json via NPM:

  • for a development build using webpack-dev-server for live-reloads: npm run start
  • for a production build to the generated dist/ directory: npm run build

Note: both builds currently employ minification of built CSS/JS/HTML - the development build has inline sourcemapping available.

About

Separate Webpack dev/prod configs. - SCSS sourcemaps/minification and es6 > es5 transpile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published