Nopcommerce: Management Client-Side Libraries

Created on 25 Dec 2019  路  5Comments  路  Source: nopSolutions/nopCommerce

In order to timely update the jquery libraries used in the project, we need a tool that would automate this process to some extent.

refactoring / source code

Most helpful comment

Nop should use npm package manager.

All 5 comments

@DmitriyKulagin how about LibMan? That's Microsoft's recommended solution for client side libraries.

@iyilm4z Yes, of course LibMan is a good tool, and now plans to use it. But it will not be used alone, as it is designed for simple libraries in which a small number of files. When it comes to more extensive libraries, for example kendo-ui-core, it is more correct to use the NPM package manager.

You can use BuildBundlerMinifier library.

With bundleconfig.json like this

{
    "outputFileName": "wwwroot/bundles/site.min.css",
    "inputFiles": [
      "wwwroot/plugins/bootstrap-datepicker/css/datepicker.css",
      "wwwroot/plugins/bootstrap-timepicker/css/bootstrap-timepicker.css",
      "wwwroot/plugins/bootstrap-multiselect/css/bootstrap-multiselect.css",
      "wwwroot/plugins/boostrapv3/css/bootstrap.min.css",
      "wwwroot/plugins/boostrapv3/css/bootstrap-theme.min.css",
      "wwwroot/plugins/font-awesome/css/font-awesome.css",
      "wwwroot/css/style.css",
      "wwwroot/css/responsive.css",
      "wwwroot/css/custom-icon-set.css"
    ]
  },
  {
    "outputFileName": "wwwroot/bundles/common.min.js",
    "inputFiles": [
      "wwwroot/plugins/jquery-1.8.3.min.js",
      "wwwroot/js/jquery.validate.min.js",
      "wwwroot/js/jquery.validate.unobtrusive.min.js",
      "wwwroot/plugins/jquery-ui/jquery-ui-1.10.1.custom.min.js",
      "wwwroot/plugins/boostrapv3/js/bootstrap.min.js"
    ],
    "minify": {
      "enabled": true,
      "renameLocals": true
    },
    "sourceMap": false
  }

PageHeadBuilder uses high CPU and Memory. You must get rid of it.

Nop should use npm package manager.

Closed #4240

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mariannk picture mariannk  路  4Comments

mmccann-umph picture mmccann-umph  路  3Comments

AndreiMaz picture AndreiMaz  路  6Comments

tigran-avdalyan picture tigran-avdalyan  路  7Comments

jigarsangoi picture jigarsangoi  路  4Comments