From d7472161803307c8ff0d5f17a1f35fac13a5128c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Sat, 30 Jul 2022 23:27:21 +0200 Subject: [PATCH] Fix editing of export-map example on codesandbox --- examples/export-map.html | 3 +++ examples/webpack/example-builder.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/export-map.html b/examples/export-map.html index a12e2a8d1c..6a736f9012 100644 --- a/examples/export-map.html +++ b/examples/export-map.html @@ -5,6 +5,9 @@ shortdesc: Example of exporting a map as a PNG image. docs: > Example of exporting a map as a PNG image. tags: "export, png, openstreetmap" +resources: + - https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css + - https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css ---
Download PNG diff --git a/examples/webpack/example-builder.js b/examples/webpack/example-builder.js index 218c012db3..26d45628fd 100644 --- a/examples/webpack/example-builder.js +++ b/examples/webpack/example-builder.js @@ -16,7 +16,7 @@ const isJsRegEx = /\.js(\?.*)?$/; const importRegEx = /\s?import .*? from '([^']+)'/g; const isTemplateJs = /\/(jquery(-\d+\.\d+\.\d+)?|(bootstrap(\.bundle)?))(\.min)?\.js(\?.*)?$/; -const isTemplateCss = /\/bootstrap(\.min)?\.css(\?.*)?$/; +const isTemplateCss = /\/(?:bootstrap|font-awesome)(\.min)?\.css(\?.*)?$/; const exampleDirContents = fs .readdirSync(path.join(baseDir, '..'))