spirulence / power-department-ld38

A game about powering the people. Ludum Dare 38 Jam entry.
GNU Affero General Public License v3.0
1 stars 1 forks source link

Faster development builds using webpack-dev-server #41

Closed spirulence closed 7 years ago

spirulence commented 7 years ago

@caryoscelus when you have a chance, please test and let me know if these changes help you.

I've changed the npm run names, it's now:

"scripts": {
    "clean": "rimraf dist",
    "assets": "npm run clean && mkdirp dist && ncp assets dist/assets",
    "build": "npm run assets && webpack -p",
    "develop": "webpack-dev-server",
    "develop-no-server": "npm run assets && webpack"
  },

You'll likely need to npm install again as some new dependencies have been added.

spirulence commented 7 years ago

Comes with the added bonus that you don't need to build for a simple asset change.

spirulence commented 7 years ago

This is really handy, and as it preserves existing functionality, I'm going to go ahead and merge it.

caryoscelus commented 7 years ago

Yeah, works great!