Quantcast
Channel: bundletransformer Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 698

Commented Unassigned: usePreMinifiedFiles=false doesn't work [86]

$
0
0
I use __BundleTransformer.Core 1.9.25__. I have included _angular-animate.js_ in bundle. But in generated bundle file I saw the error:
```
/* Minification failed. Returning unminified contents.
(402,118-125): run-time error JS1019: Can't have 'break' outside of loop: break a
```
The reason is that the bundle uses _angular-animate.min.js_ instead of _angular-animate.js_. When I delete _angular-animate.min.js_ file, it uses _angular-animate.js_ and there is not errors.

_Web.config_ contains:
```
<bundleTransformer xmlns="http://tempuri.org/BundleTransformer.Configuration.xsd">
<core>
<js usePreMinifiedFiles="false">
<translators>
<add name="NullTranslator" type="BundleTransformer.Core.Translators.NullTranslator, BundleTransformer.Core" enabled="false" />
</translators>
<minifiers>
<add name="NullMinifier" type="BundleTransformer.Core.Minifiers.NullMinifier, BundleTransformer.Core" />
</minifiers>
<fileExtensions>
<add fileExtension=".js" assetTypeCode="JavaScript" />
</fileExtensions>
</js>
</core>
</bundleTransformer>
```
Seems, __usePreMinifiedFiles=false__ attribute doesn't prevent usage of existing _*.min.js_ files.
Comments: You did not plug the Bundle Transformer in `App_Start/BundleConfig.cs` file. I recommend you to read the “Examples of usage” section of the [documentation](https://bundletransformer.codeplex.com/documentation).

Viewing all articles
Browse latest Browse all 698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>