Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/benjaminwfox/js13k-webpack-starter-2020

A webpack base for the js13kGames competition. Includes split webpack config for dev/prod (and prod minification), SASS support, image loading via HTML/CSS/JS, eslint for formatting & error prevention, and babel for latest ES2020 syntax.
https://github.com/benjaminwfox/js13k-webpack-starter-2020

boilerplate boilerplate-front-end js13kgames js13kgames2020 webdevelopment webpack

Last synced: 3 days ago
JSON representation

A webpack base for the js13kGames competition. Includes split webpack config for dev/prod (and prod minification), SASS support, image loading via HTML/CSS/JS, eslint for formatting & error prevention, and babel for latest ES2020 syntax.

Awesome Lists containing this project

README

        

## Webpack Base for js13kGames

### Getting started

`git clone https://github.com/BenjaminWFox/js13k-webpack-starter-2020.git`

`cd js13k-webpack-starter-2020`

`npm install`

`npm run develop`

http://localhost:8080/

### Scripts

- `develop`: Starts the webpack dev server on http://localhost:8080/
- `build`: Creates a compact, minified build in `/dist`
- `lint`: Runs eslint to check for errors. Better to set this up in your IDE to check automatically on save.

### Boilerplate

There are some files & code included as examples of function & syntax that are not meant to be included in the final bundle. You can basically remove everything from the files listed below, but the largest chunks are:

- `index.js` - the `.scss` and `.png` import
- `main.scss` - the `.png` `background-image`
- `index.html` - the `` tag
- These 3 images are in `assets/images/sprites` and can also be deleted

### js13k specific files

None of these files are included in your final bundle.

- `manifest.json` - The metadata file used when submitting your final game
- `image_large.png` - The large image that shows on the game detail page
- `image_thumbnail.png` - The thumbnail preview image that shows on the games gallery page