To enable source maps, add this property to the bundleconfig.json file: map file, a new one will not be created on subsequent minifications. min.js file automatically, but if you manually delete the. Source maps are supported for JavaScript minification only at this time.Ī. You can run the bundler on all bundleconfig.json files in the solution by using the keyboard shortcut Shift+Alt+i or by using the button on the top level Build menu. That NuGet package contains an MSBuild task that will run the exact same compilers on the bundleconfig.json file in the root of the project.įor ASP.NET Core projects, see the wiki Update all bundles Simply right-click the bundleconfig.json file to enable it.Ĭlicking the menu item will prompt you with information about what will happen if you click the OK button.Ī NuGet package will be installed into the packages folder without adding any files to the project itself. In ASP.NET MVC and WebForms projects you can enable bundling and minification as part of the build step. When the original file is modified, a new min file is produced instantly. Minify any JS, CSS or HTML file by right-clicking it in Solution Explorer. The bundle configuration is stored in a file called bundleconfig.json which gets added to the root of the project. Select 2 or more of the same type of files in Solution Explorer to create a bundle.Īny edits being made to the source files will instantly produce updated bundle file output. If you see strange characters in the output bundle files, you may want to consider saving the input files as UTF-8 or an encoding that lets you specify a BOM.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |