Ready-to-use webpack starter including:
- webpack
- Babel with the latest preset
- ESLint
- Sass with stylelint and hot reloading
- Auto-loaded
.env
file
And other useful loaders and linters.
Clone the repository to your computer. You must have Node.js (> v4) and Yarn installed:
git clone git@github.com:gabrielecanepa/webpack-starter.git my-project
# or
gh repo clone gabrielecanepa/webpack-starter my-project
cd my-project
# Install packages and run the app
yarn setup
Some scripts are already provided in your package.json
.
To start a local server on port 8080
:
yarn start
# or in development mode
yarn dev
To lint all your JavaScript and CSS and SCSS files:
yarn lint
To build the static files:
yarn build