Skip to content

6. Webpack

Yurii Pavlov edited this page Jun 19, 2019 · 3 revisions

Webpack Configs

All webpack configs placed in build directory

  • _basic.config.js - shared config for all builds
  • core.config.js - config for compile core assets asstes folder
  • shortcodes.config.js - config for compile shortcodes assets
  • widgets.config.js - config for compile widget assets
  • browser-sync.config.js.sample - sample config for browser-sync

Usage

to run webpack use next commands

  • npm run prod or yarn prod - build minified assets
  • npm run dev or yarn dev- build assets with source maps (for development)
  • npm run watch or yarn watch- start watcher
  • npm run browser-sync or yarn browser-sync - to start watcher with broser sync
    • To use browser sync make sure that you copied build/broswer-sync.config.js.sample to build/broswer-sync.config.js - and configured your local domain
Clone this wiki locally