![]() The name is optional for the razor bundle tag helpers. In order to use bundle tag helpers, you need to add it into your _ViewImports.cshtml file or into your page: *, .UI.Bundling So, most of the time, you don't need to add it manually. This is already imported by default with the startup templates. The versioning works even if the bundle files are individually added to the page (on the development environment). (like ?_v=67872834243042 - generated from last change date of the related files). ABP automatically adds version query string to the bundle file URL to prevent browsers from caching when the bundle is being updated.The bundle files may be physical files or virtual/embedded files.See the Bundling Mode section to change that behavior. It automatically bundles & minifies for other environments ( staging, production.). ABP adds bundle files individually to the page for the development environment.That means if you conditionally add the files to the bundle, it's executed only once and any changes of the condition will not effect the bundle for the next requests. For the subsequent calls, it's returned from the cache. ABP creates the bundle as lazy from the provided files when it's first requested.It's very easy to understand how to use it. This bundle defines a style bundle with a unique name: MyGlobalBundle. The simplest way of creating a bundle is to use abp-script-bundle or abp-style-bundle tag helpers. Then you can add the AbpAspNetCoreMvcUiBundlingModule dependency to your module: using Install the .UI.Bundling nuget package to your project: install-package .UI.Bundling ![]() So, most of the time, you don't need to install it manually. This package is already installed by default with the startup templates. Using Gulp/ Grunt task managers and their plugins.ĪBP offers a simple, dynamic, powerful, modular and built-in way.Using the Bundler & Minifier Visual Studio extension or the NuGet package.There are many ways of bundling & minification of client side resources (JavaScript and CSS files). 3: Creating, Updating and Deleting Books Upd.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |