-
Notifications
You must be signed in to change notification settings - Fork 307
Description
I am starting with rendr and I am trying to improve the performance of the code reload in development and also improve client side cache. My starting point were the codebase existent on the examples/06.
So my goal are:
- Split the bundle in two (at least):
- vendor bundle: with rendr and rendr dependencies (backbone, underscore...);
- application bundle: with the application logic (router, views, ...)
- update grunt-browserify used from the examples (to use cache existent on the plugin)
Bundling: Since our application code is in a different bundle the reload should be faster since it contains less dependencies to bundle. Would also be nice to have a bundle with the handlebar templates and other with server side logic, this would probably improve the reload time also and specially useful for designers workflow.
Grunt Browserify plugin: From what I had read, the last builds of grunt-browserify would allow us to use the native browserify cache that make bundle faster after the first bundle. But until now I was unable to package the app (even with a single bundle) with the last version of grunt-browserify, since alias mapping have been removed and alternatives seems not be working properly.
Anyone with nice recipes for this kind of stuff?
@saponifi3d :)