Closed wemyss closed 6 years ago
Or maybe I should just add webpack
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 :)
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
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
While that is true, we do need to put the minified things somewhere and be able to run using them right?
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, )
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).