Fixed missing CSS on published site = adding bundling.
Justification: When published (under Release configuration) in layout there is just app.min.css. We can either add also other minified CSS there (components, headers,...) or add one bundled and minified 8KB css.
This commit is contained in:
27
src/Web/bundleconfig.json
Normal file
27
src/Web/bundleconfig.json
Normal file
@@ -0,0 +1,27 @@
|
||||
[
|
||||
{
|
||||
"outputFileName": "wwwroot/css/site.min.css",
|
||||
"inputFiles": [
|
||||
"wwwroot/css/app.css",
|
||||
"wwwroot/css/app.component.css",
|
||||
"wwwroot/css/shared/components/header/header.css",
|
||||
"wwwroot/css/shared/components/identity/identity.css",
|
||||
"wwwroot/css/shared/components/pager/pager.css",
|
||||
"wwwroot/css/basket/basket.component.css",
|
||||
"wwwroot/css/basket/basket-status/basket-status.component.css",
|
||||
"wwwroot/css/catalog/catalog.component.css",
|
||||
"wwwroot/css/orders/orders.component.css"
|
||||
]
|
||||
},
|
||||
{
|
||||
"outputFileName": "wwwroot/js/site.min.js",
|
||||
"inputFiles": [
|
||||
"wwwroot/js/site.js"
|
||||
],
|
||||
"minify": {
|
||||
"enabled": true,
|
||||
"renameLocals": true
|
||||
},
|
||||
"sourceMap": false
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user