-
Notifications
You must be signed in to change notification settings - Fork 6
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 assetsasstes
folder -
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 prod
oryarn prod
- build minified assets -
npm run dev
oryarn dev
- build assets with source maps (for development) -
npm run watch
oryarn watch
- start watcher -
npm run browser-sync
oryarn browser-sync
- to start watcher with broser sync- To use browser sync make sure that you copied
build/broswer-sync.config.js.sample
tobuild/broswer-sync.config.js
- and configured your local domain
- To use browser sync make sure that you copied