xroad_stats_js:
  filters: rjsmin
  output: ckanext-xroad_integration/%(version)s_xroad-stats.js
  extra:
    preload:
      - base/main
  contents:
    - javascript/libs/Chart.js
    - javascript/libs/chartjs-datalabels.js
    - javascript/xroad_stats.js

xroad_stats_css:
  filters: cssrewrite
  output: ckanext-xroad_integration/%(version)s_xroad-stats.css
  contents:
    - css/Chart.css

xroad_stats_js:
  filters: rjsmin
  output: ckanext-xroad_integration/%(version)s_xroad-stats.js
  extra:
    preload:
      - base/main
  contents:
    - javascript/libs/Chart.js
    - javascript/libs/chartjs-datalabels.js
    - javascript/xroad_stats.js

xroad_stats_css:
  output: ckanext-xroad_integration/%(version)s_xroad-stats.css
  contents:
    - css/Chart.css

Rewrite is not needed and has never worked in any extension
Rewrite is not needed and has never worked in any extension
