Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gabrielecanepa/webpack-starter

Ready-to-use webpack starter including inbuilt ESLint, Sass and env support 📦
https://github.com/gabrielecanepa/webpack-starter

babel es6 eslint sass webpack webpack-starter webpack-template

Last synced: 25 days ago
JSON representation

Ready-to-use webpack starter including inbuilt ESLint, Sass and env support 📦

Awesome Lists containing this project

README

        

# Webpack Starter

Ready-to-use webpack starter including:

- [webpack](https://webpack.js.org)
- [Babel](https://babeljs.io) with the latest preset
- [ESLint](https://eslint.org)
- [Sass](http://sass-lang.com) with [stylelint](https://stylelint.io) and hot reloading
- Auto-loaded `.env` file

And other useful loaders and linters.

## Usage

Clone the repository to your computer. You must have [Node.js](https://nodejs.org) (> v4) and [Yarn](https://yarnpkg.com/lang/en/docs/install) installed:

```bash
git clone [email protected]: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
```

### Scripts

Some scripts are already provided in your `package.json`.

To start a local server on port `8080`:

```bash
yarn start
# or in development mode
yarn dev
```

To lint all your JavaScript and CSS and SCSS files:

```bash
yarn lint
```

To build the static files:

```bash
yarn build
```