This is a migrated thread and some comments may be shown as answers.

[Solved] js doesn't minify in production, only in local

4 Answers 34 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul
Top achievements
Rank 1
Paul asked on 28 Nov 2011, 07:02 PM
Hello,

I don't know why et just can't find any clue here and there about this problem.
I need your help, please.

Here is my call:
<%Html.Telerik().ScriptRegistrar().Globalization(true).Render();%>

It's working in local:
 <script type="text/javascript" src="/Content/Scripts/Lib/Telerik/telerik.common.min.js"></script>
<script type="text/javascript" src="/Content/Scripts/Lib/Telerik/telerik.textbox.min.js"></script>
<script type="text/javascript" src="/Content/Scripts/Lib/Telerik/telerik.calendar.min.js"></script>
<script type="text/javascript" src="/Content/Scripts/Lib/Telerik/telerik.datepicker.min.js"></script>
<script type="text/javascript" src="/Content/Scripts/Lib/Telerik/telerik.grid.min.js"></script>

But not in production:
<script type="text/javascript" src="/Content/Scripts/Lib/Telerik/telerik.common.js"></script>
<script type="text/javascript" src="/Content/Scripts/Lib/Telerik/telerik.textbox.js"></script>
<script type="text/javascript" src="/Content/Scripts/Lib/Telerik/telerik.calendar.js"></script>
<script type="text/javascript" src="/Content/Scripts/Lib/Telerik/telerik.datepicker.js"></script>
<script type="text/javascript" src="/Content/Scripts/Lib/Telerik/telerik.grid.js"></script>

Web.config are the same.

Best regards,
Paul

4 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 29 Nov 2011, 10:17 AM
Hi Paul,

 Did you by any chance deploy the site in debug mode? Check for <compilation debug="true"> in your web.config and if it exist - set it to false.



Greetings,
Georgi Tunev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Paul
Top achievements
Rank 1
answered on 29 Nov 2011, 10:22 AM
Hello Georgi!

Thanks a lot, this resolves my problem.

I was convinced it was published in release mode.
Just a notice: it works fine in local with debug with true value.

Thanks again!
0
Georgi Tunev
Telerik team
answered on 29 Nov 2011, 01:28 PM
Hi again Paul,

Generally speaking, that could happen if you have both unminidied and minified versions in the production and only minified version of the JS files locally.

Best wishes,
Georgi Tunev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Paul
Top achievements
Rank 1
answered on 29 Nov 2011, 02:42 PM
Hi Georgi,

You're right!
Even if you're not on my working station you know it :]

Best wishes,
Paul
Tags
General Discussions
Asked by
Paul
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Paul
Top achievements
Rank 1
Share this question
or