문제

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:

  1. Add a global property to indicate develop time or production time.
  2. 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top