aavanzyl / ngx-tiny

Implementation of Light Weight Angular Components for Production Applications
https://aavanzyl.github.io/ngx-tiny
MIT License
7 stars 3 forks source link

Date picker selected date background not shown when the application is built with optimization:true #17

Open ragibsm opened 3 years ago

ragibsm commented 3 years ago

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. image

To Reproduce Steps to reproduce the behavior:

  1. Build the application with the optimization: true in angular.json configuration
  2. Serve the dist folder with http-server
  3. Open date-picker and select some date
  4. After you selected the date open the date-picker again
  5. 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" } ] },