How to set debug false for release mode

Web.config transformations as they are defined in the Web.Release.config are only done when deploying/publishing the project for the relevant configuration. Just changing the active configuration in Visual Studio to Release and running the application does not run the transformations. Therefore, the web.config remains unchanged. This behavior is reasonable by the way as a web application … Read more

jquery 1.9.0 and modernizr cannot be minified with the ASP.NET Web Optimization Framework

I’m sure that the cause of your problem is the last line of jquery-1.9.0.min.js: //@ sourceMappingURL=jquery.min.map The unminified version of jQuery 1.9 does not contain this. I’ll explain why in a minute. I’ve noticed myself that when jquery-1.9.0.min.js is bundled with another file – and that other file follows jquery-1.9.0.min.js – then the following JS … Read more

Bundling not working in MVC5 when I turn on release mode

This is the default behavior. Bundling and minification is enabled or disabled by setting the value of the debug attribute in the compilation Element in the Web.config file. <system.web> <compilation debug=”true” /> <!– Lines removed for clarity. –> </system.web> To enable bundling and minification, set the debug value to “false”. You can override the Web.config … Read more

Usage of the ASP.NET MVC4 jquery/javascript bundles

What exactly does this file do? jqueryval is not a file it is a reference to a bundle. A bundle in MVC4 is a collection of scripts, styles or other files bundled together into a single bundle. You will have a BundleConfig.cs file in the App_Start folder, which contains the settings of which file is … Read more

Exclude module from webpack minification

Webpack externals are a good option to avoid bundle certain dependencies. However we need to exclude the config.js from minification so that it can be overwritten as part of the deployment process. Adding a dependency as external not only excludes it from minification but it is not even resolved by webpack. webpack.config.js var webpack = … Read more

With Webpack, is it possible to generate CSS only, excluding the output.js?

There is an easy way, no extra tool is required. There is an easy way and you don’t need extra libraries except which you are already using: webpack with the extract-text-webpack-plugin. In short: Make the output js and css file have identical name, then the css file will override js file. A real example (webpack … Read more

How to remove or identify unused packages from flutter to reduce size of the project?

There is an intuitive way for it. Install this package dev_dependencies: dependency_validator: ^x.x.x Then run flutter pub run dependency_validator It will show all the details about the packages installed. Example: => These packages are pinned in pubspec.yaml: dependency_validator: null — This is a direct pin. permission_handler: null — This is a direct pin. swipe_to: null … Read more

ASP.NET MVC4 Bundling with Twitter Bootstrap

The issue is most likely that the icons/images in the css files are using relative paths, so if your bundle doesn’t live in the same app relative path as your unbundled css files, they become broken links. We have rebasing urls in css on our todo list, but for now, the easist thing to do … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)