Cypher1 / 13k_lost

A tiny game (hopefully)
3 stars 1 forks source link

compression and minification #2

Closed wemyss closed 6 years ago

wemyss commented 7 years ago

I'm thinking just to keep things simple we just use a tool like mergejs, that way we can just focus on writing code.

We aren't using a module bundler which counts out a lot of the automated compression, minification and bundling tools (e.g. gulp, webpack).

wemyss commented 7 years ago

Or maybe I should just add webpack

Cypher1 commented 7 years ago

I was just playing with mergejs to try to get npm build to create a minified version. Modifying the index.js 'runner' is the weird part. Not sure how it's paths work :)

Cypher1 commented 7 years ago

Okay added a basic mergejs builder... not sure its a huge improvement and I probably should add a 'dev' mode so that we don't have to build all the time. In fact brb

wemyss commented 7 years ago

we don't need to minify anything outside of the public folder. not sure when it's deployed whether they want it minifed there or just in the submission

Cypher1 commented 7 years ago

While that is true, we do need to put the minified things somewhere and be able to run using them right?

Cypher1 commented 7 years ago

Okay, now we have npm run build (builds a dist) npm run start (runs a built dist) npm run dev (runs a dev version without minication etc, no building required, )