Ready-to-use webpack starter including:
- webpack
- Babel with the latest preset
- ESLint
- Sass with stylelint and hot reloading
- Auto-loaded
.envfile
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 setupSome scripts are already provided in your package.json.
To start a local server on port 8080:
yarn start
# or in development mode
yarn devTo lint all your JavaScript and CSS and SCSS files:
yarn lintTo build the static files:
yarn build