Documentation for asp.net core shows how to do bundling and minification css
and js
files using grunt or gulp.
However when i create a project using vs 2015 it adds bundleconfig.json
file into project. I want to minify all the js files inside wwwroot/js folder. So i updated the existing lines inside bundleconfig.json to use wildcard character *
{
"outputFileName": "wwwroot/js/*.min.js",
"inputFiles": [
"wwwroot/js/*.js"
],
// Optionally specify minification options
"minify": {
"enabled": true,
"renameLocals": true
},
// Optinally generate .map file
"sourceMap": false
}
however when i publish the project i get error
Processing wwwroot/js/*.min.js Illegal characters in path. Parameter name: path