Marko: [Question] Best practice guide for production?

Created on 24 Feb 2017  路  3Comments  路  Source: marko-js/marko

Question

I'm using marko and is awesome

My question is, there's any Best Practice guide for production enviroment?

Thanks guys!

backlog docs

Most helpful comment

Thanks for the feedback @mauricionr !

Just to add to what @Hesulan said, minification and minprops (not yet documented) are the only two things that are strongly recommended for production builds. But yes, we will be publishing a guide for production builds. I'll keep this issue open as a reminder. Thanks, again!

All 3 comments

For client-side, see #490; The documentation is still a work-in-progress. Patrick mentioned using minprops and envify to reduce code size, but you should really just follow the standard best practices for all client-side code: Minify, gzip, and cache responsibly. How you actually do that depends on your other libraries and frameworks - express, lasso, etc.

Server-side, the only recommendation I'm aware of is to set NODE_ENV=production. That's because Marko is designed to be the best of both worlds - convenient in development, efficient in production.

Thanks for the feedback @mauricionr !

Just to add to what @Hesulan said, minification and minprops (not yet documented) are the only two things that are strongly recommended for production builds. But yes, we will be publishing a guide for production builds. I'll keep this issue open as a reminder. Thanks, again!

The new examples repo does have some mostly production-ready setups. Also, there is now @marko/serve and @marko/build for a zero-config production-ready setup.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

runeh picture runeh  路  5Comments

tinovyatkin picture tinovyatkin  路  5Comments

basickarl picture basickarl  路  4Comments

jdnichollsc picture jdnichollsc  路  5Comments

grawlinson picture grawlinson  路  4Comments