TimGeyssens / BundlingAndMinificationForTheMasses

UI layer on top of http://aspnetoptimization.codeplex.com/ for Umbraco
http://www.nibble.be/?p=237
25 stars 5 forks source link

Bundling enabled setting and create compiled files disable setting #1

Closed Jeavon closed 11 years ago

Jeavon commented 11 years ago

Two tweaks for you:

No 1: set Optimus to respect compilation debug mode as discussed here http://our.umbraco.org/projects/developer-tools/optimus/computer-says-no/43685-When-compilation-debug=true-Optimus-should-not-bundle-file

No 2: add settings to allow the disable of the creation of .css and .js files from translators as described here http://our.umbraco.org/projects/developer-tools/optimus/computer-says-no/43181-Optimus-10-Package-improvement-suggestions?p=1#comment157972

Hope you like them :-)

TimGeyssens commented 11 years ago

Awesome, looks good, will get a new version out on Friday :)

Jeavon commented 11 years ago

Cool, just found a unrelated bug where if you click the bundle button in the template editor on scss files it creates a script rather than style bundle, looking into it now :)

Jeavon commented 11 years ago

Issue fixed in 4ead5f1 and also a little css icon bug I also found :-)

Jeavon commented 11 years ago

Cool!

Really need to make sure that when installing a transformer the bundle transformer http handler is added to web.config so that when compilation debug is set to true, the scss (or other) requests can be rendered, e.g.

<add name="ScssAssetHandler" path="*.scss" verb="GET" type="BundleTransformer.SassAndScss.HttpHandlers.SassAndScssAssetHandler, BundleTransformer.SassAndScss" resourceType="File" preCondition="" />

I've not had a look at how the transformers are installed yet, Is this something easily done?