Answers for ".Net Core Bundling & minification : .net core The name 'Scripts' does not exist in the current context"

C#
0

.Net Core Bundling & minification : .net core The name 'Scripts' does not exist in the current context

// Configure bundling and minification for the project.
// More info at https://go.microsoft.com/fwlink/?LinkId=808241
[
  {
    "outputFileName": "wwwroot/css/site.min.css",
    // An array of relative input file paths. Globbing patterns supported
    "inputFiles": [
      "wwwroot/css/site.css"
    ]
  },
  {
    "outputFileName": "wwwroot/js/bundles.min.js",
    "inputFiles": [
      "wwwroot/js/site.js",
      "wwwroot/lib/jquery/dist/jquery.js",
      "wwwroot/lib/jquery/dist/jqueryvalidate.js"
    ],
    // Optionally specify minification options
    "minify": {
      "enabled": true,
      "renameLocals": true
    },
    // Optionally generate .map file
    "sourceMap": false
  }
]
Posted by: Guest on August-24-2021

Code answers related to ".Net Core Bundling & minification : .net core The name 'Scripts' does not exist in the current context"

C# Answers by Framework

Browse Popular Code Answers by Language