From 04bed69f4019209cccba0596f25d9d57dfdad1ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 7 Oct 2024 11:36:34 +0200 Subject: [PATCH] Easy use CSS bundle for each interfaces By using for desktop interface: @import 'gmf/controller/desktop.css' in you CSS file. --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cd8af91db976..72ba4b656a43 100644 --- a/package.json +++ b/package.json @@ -16,9 +16,10 @@ "dist": "TARGET=dist webpack --mode=production --progress", "dist-spinner": "svgo --config=svgo.js src/icons/spinner.svg --output=dist/spinner.svg", "distlib": "tsc --pretty", - "distlib-css": "copyfiles --verbose src/**/*.css src/*.css src/**/*.scss src/*.scss distlib", "distlib-images": "copyfiles --verbose src/**/*.svg src/*.svg src/**/*.png src/*.png distlib", - "prepare": "npm run dist && npm run dist-spinner && npm run distlib && npm run distlib-css && npm run distlib-images", + "distlib-css": "copyfiles --verbose src/**/*.css src/*.css src/**/*.scss src/*.scss distlib", + "distlib-css-bundle": "cp dist/desktop-*.css distlib/src/controllers/desktop.css && cp dist/mobile-*.css distlib/src/controllers/mobile.css && cp dist/iframe_api-*.css distlib/src/controllers/iframe_api.css", + "prepare": "npm run dist && npm run dist-spinner && npm run distlib && npm run distlib-images && npm run distlib-css && npm run distlib-css-bundle", "typecheck": "tsc --project tsconfig-all.json --noEmit", "doc": "typedoc", "build-storybook": "TARGET=ngeo-examples storybook build --output-dir=.build/storybook",