Best practice for SquishIt in develop time
-
13-11-2019 - |
Question
SquishIt could bundle the js files. But I don't want to bundle it in the develop time. What is your best practice? There are some methods as below:
- Add a global property to indicate develop time or production time.
- use #if DEBUG ... #end
Above methods is not perfect, Is there any configuration switch on SquishIt for that?
Solution
If you have
<compilation debug="true">
<!-- snip! -->
</compilation>
in your web.config squishit should skip bundling and render individual file tags into your page.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow