Add bundling and minification
This commit is contained in:
parent
0187aec52a
commit
56cca63b2d
3 changed files with 25 additions and 1 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -39,3 +39,7 @@ msbuild.wrn
|
||||||
|
|
||||||
#lcov files
|
#lcov files
|
||||||
lcov.info
|
lcov.info
|
||||||
|
|
||||||
|
#minified files
|
||||||
|
*.min.css
|
||||||
|
*.min.js
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="BuildBundlerMinifier" Version="2.9.406" />
|
||||||
<PackageReference Include="dapper" Version="1.60.9" />
|
<PackageReference Include="dapper" Version="1.60.9" />
|
||||||
<PackageReference Include="dapper.contrib" Version="1.60.1" />
|
<PackageReference Include="dapper.contrib" Version="1.60.1" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.App" />
|
<PackageReference Include="Microsoft.AspNetCore.App" />
|
||||||
|
|
19
Website/bundleconfig.json
Normal file
19
Website/bundleconfig.json
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"outputFileName": "wwwroot/css/site.min.css",
|
||||||
|
"inputFiles": [
|
||||||
|
"wwwroot/css/site.css"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"outputFileName": "wwwroot/js/site.min.js",
|
||||||
|
"inputFiles": [
|
||||||
|
"wwwroot/js/site.js"
|
||||||
|
],
|
||||||
|
"minify": {
|
||||||
|
"enabled": true,
|
||||||
|
"renameLocals": true
|
||||||
|
},
|
||||||
|
"sourceMap": false
|
||||||
|
}
|
||||||
|
]
|
Loading…
Add table
Add a link
Reference in a new issue