kendo-labs / kendo-bootstrapper

GNU General Public License v3.0
49 stars 20 forks source link

Provide debug/release configurations in lieu of a zip file #28

Open burkeholland opened 11 years ago

burkeholland commented 11 years ago

It would be helpful if the Bootstrapper would have 2 modes.

1) Debug - the mode it operates in all the time now. Reserve a section at the head of the page and insert all files.

2) Release - Concat/Minify or run RequireJS build and then add single script file to the bottom of the page, just below the closing body tag. It also might be helpful to allow people to specify where they want the build file to go with some sort of convention...

<!-- KENDO_BOOTSTRAPPER:BUILD -->
mishoo commented 11 years ago

1) Debug - the mode it operates in all the time now. Reserve a section at the head of the page and insert all files.

Indeed, that's how it works now, except that instead of inserting all the files in the page, it'll insert a single script tag that will generate code that loads the files. This way it doesn't have the modify the page all the time. That section is replaced on "Bundle".

2) Release - Concat/Minify or run RequireJS build and then add single script file to the bottom of the page, just below the closing body tag. It also might be helpful to allow people to specify where they want the build file to go with some sort of convention...

and this happens on "Bundle". Do you mean you'd like to have the ability to preview with minified/concatenated files without generating a bundle?