Since I use webpack encore for many of my projects and for the first steps I don’t need that much customizability, I use the same commands over and over again. With this repository, I want to just write down a quick step-by-step way to set up Webpack Encore.
assets(basic .js and .css files) folder to your root directory.
webpack.config.js(build settings) to your root directory.
Follow these steps to install the npm packages:
yarn add @symfony/webpack-encore --dev yarn add sass-loader node-sass --dev yarn add webpack-notifier --dev # If you want Bootstrap 4 incl. jQuery yarn add firstname.lastname@example.org jquery popper.js --dev # If you want Vue.js incl. hot module replacement yarn add vue vue-loader vue-template-compiler --dev
./node_modules/.bin/encore dev --watch