Inline minification - how to ignore jquery.tmpl script blocks?

Sep 9, 2010 at 9:57 AM

Absolutely loving the new release of Chirpy, especially the new inline translation/minfication feature.

The only issue I've found so far was on a page that was using the jquery.tmpl templating library

This uses script blocks to define templates, eg

    <script id="myTemplate" type="text/html">


    <script id="myTemplate" type="text/x-jquery-tmpl">

If you try and use the inline minification on a page that contains this, the generated file looks like

    <script id="myTemplate" type="text/html">/* error */</script>

Is there any way to disable minification on an individual script block?

Sep 9, 2010 at 6:50 PM

This is not possible yet. But it definitely should be. (lo siento) I'll add it as a feature to complete.




Feb 3, 2011 at 4:07 PM

Actually, I trying the following and need to exclude the *.min.js from minification, which is not working now ..

<?xml version="1.0"?>
    <FileGroup Name="main.scripts.js">
        <Folder Path="/" Type="*.min.js" Minify="false"/>
        <Folder Path="/" Type="*.js" Exclude="*.min.js" Minify="true"/>