Skip to content

Commit

Permalink
Easy use CSS bundle for each interfaces
Browse files Browse the repository at this point in the history
By using for desktop interface:
@import 'gmf/controller/desktop.css'
in you CSS file.
  • Loading branch information
sbrunner committed Oct 7, 2024
1 parent 1d8b835 commit 04bed69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 04bed69

Please sign in to comment.