-
Notifications
You must be signed in to change notification settings - Fork 7
6. Webpack
Yurii Pavlov edited this page Jun 19, 2019
·
3 revisions
All webpack configs placed in build directory
-
_basic.config.js- shared config for all builds -
core.config.js- config for compile core assetsasstesfolder -
shortcodes.config.js- config for compile shortcodes assets -
widgets.config.js- config for compile widget assets -
browser-sync.config.js.sample- sample config forbrowser-sync
to run webpack use next commands
-
npm run prodoryarn prod- build minified assets -
npm run devoryarn dev- build assets with source maps (for development) -
npm run watchoryarn watch- start watcher -
npm run browser-syncoryarn browser-sync- to start watcher with broser sync- To use browser sync make sure that you copied
build/broswer-sync.config.js.sampletobuild/broswer-sync.config.js- and configured your local domain
- To use browser sync make sure that you copied