Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Adding support to steal to load pre-built modules

$
0
0
Usecase

Say we have 2 modules common and filemanger
common - has donejs + common jquery plugins + some common utilities and libraires
filemanager - depends on common module + has file manager specific controller, models, ejs files

Build
common module is built separately which generates a merged js (common.js), merged css (common.css) files from all files in that module

filemanager module is built separately which has to steal the merged js (common.js) and merged css (common.css) at run time in production mode and should not include common.js and common.css in filemanger production.js and production.css

This feature enables us to deliver and deploy common module independently without having to build filemanager everytime common module changes

Viewing all articles
Browse latest Browse all 3491

Trending Articles