To compile using webpack: npm run webpack. This will move configured assets from src to dist including url rewriting for most of them.
npm run webpack
dont forget, that you have to estimate css and js file urls, especially where they will be moved to in dist/.
dist/