webpack4-pug-sass-example Just clone and run: npm i && npm run watch Base filetree: src index.js index.pug scripts plugin.js styles main.sass