You will need NodeJS, then install Yarn globally
npm install - g yarn
Create package.json by running this command
yarn init
yarn add webpack webpack-dev-server html-webpack-plugin -D
yarn add babel-core babel-loader babel-preset-env -D
yarn add raw-loader sass-loader node-sass css-loader style-loader -D
yarn add extract-text-webpack-plugin -D
yarn add dotenv -D
yarn add webpack-dashboard -D
yarn add copy-webpack-plugin uglifyjs-webpack-plugin -D
- src: Main project container.
- src/app: Will host our javacript files.
- src/public: Holds project assets and static files.
- src/style: Holds the project's global styles.
- src/app/index.js: Main entry point into our project.
- src/public/index.html: Main project template.
yarn start
If you encounter this error: 'webpack-dev-server not recognized' please run
npm install --only=dev
This git follows instructions from Scotch.io