简体   繁体   中英

Asp.net Bundling/minification return old files after minification

We are using bundling and minification with asp.net MVC with web optimization 1.1.0.0. Previously it was working fine however we are facing issue now.

We have changed one of the js file and it is not reflecting in the minification, it taking older js file for minification. It also update the has once file get changed.

Whenever we add "BundleTable.EnableOptimizations = true" it minification done with older js file and render it on UI. and when we "BundleTable.EnableOptimizations = false" it render updated JS file on UI.

Anyone has suggestion ?

Actually problem was, i had the .min.js file of changed .js at the same location.

i changed .js but havent changed .min.js

If you have .min.js file the bundling/minification will pick up the .min file from folder.

So please take care when you changes .js and you have .min.js @ same location.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM