Best practice for SquishIt in develop time
-
13-11-2019 - |
문제
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?
해결책
If you have
<compilation debug="true">
<!-- snip! -->
</compilation>
in your web.config squishit should skip bundling and render individual file tags into your page.
제휴하지 않습니다 StackOverflow