-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Describe the bug
I'm using date-picker component, version 10.0.2. When date-picker has some value selected the selected day background should have red color. For example if current value is 01/27/2021, when I open date-picker number 27 should have red background. This works fine when I start the app in development mode, but when it's build for production with optimization option set to true number 27 does not have any background.
To Reproduce
Steps to reproduce the behavior:
- Build the application with the optimization: true in angular.json configuration
- Serve the dist folder with http-server
- Open date-picker and select some date
- After you selected the date open the date-picker again
- The date that you have chosen should have red (default) background but it does not
Expected behavior
Selected day of the selected date should have red background if the app is build for production.
This is my angular configuration:
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
},