From 4b5f2367a9f4af1fc4164d788f12e6b917b6ade4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Saba=C5=82a?= Date: Thu, 11 Apr 2024 13:59:01 +0200 Subject: [PATCH] ADX-1088 Extract frictionless js into separate webassets component. (#319) --- ckanext/unaids/assets/webassets.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ckanext/unaids/assets/webassets.yml b/ckanext/unaids/assets/webassets.yml index 2179dbb3..4486ea14 100644 --- a/ckanext/unaids/assets/webassets.yml +++ b/ckanext/unaids/assets/webassets.yml @@ -20,11 +20,19 @@ FileInputComponentStyles: filters: cssmin output: unaids/%(version)s_FileInputComponent.css +FrictionlessJS: + filters: rjsmin + contents: + - frictionless-js.js + output: unaids/%(version)s_Frictionless.js + FileInputComponentScripts: filters: rjsmin contents: - - frictionless-js.js - build/FileInputComponent.js + extra: + preload: + - ckanext-unaids/FrictionlessJS output: unaids/%(version)s_FileInputComponent.js BulkFileUploaderComponentStyles: @@ -36,8 +44,10 @@ BulkFileUploaderComponentStyles: BulkFileUploaderComponentScripts: filters: rjsmin contents: - - frictionless-js.js - build/BulkFileUploaderComponent.js + extra: + preload: + - ckanext-unaids/FrictionlessJS output: unaids/%(version)s_BulkFileUploaderComponent.js MapSelectorJS: