Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3a8df23

Browse files
authored
Merge pull request #7526 from plotly/map-error-layout-issue-2
Fix broken styling of map attributions
2 parents 7f74764 + c8af613 commit 3a8df23

File tree

4 files changed

+67
-98
lines changed

4 files changed

+67
-98
lines changed

‎esbuild-config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var glsl = require('esbuild-plugin-glsl').glsl;
22
var environmentPlugin = require('esbuild-plugin-environment').environmentPlugin;
3-
const stylePlugin = require('esbuild-style-plugin');
3+
const InlineCSSPlugin = require('esbuild-plugin-inline-css');
44

55
module.exports = {
66
entryPoints: ['./lib/index.js'],
@@ -10,7 +10,7 @@ module.exports = {
1010
minify: false,
1111
sourcemap: false,
1212
plugins: [
13-
stylePlugin(),
13+
InlineCSSPlugin(),
1414
glsl({
1515
minify: true,
1616
}),

‎package-lock.json

Lines changed: 64 additions & 85 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
"esbuild-plugin-browserify-adapter": "^0.1.4",
137137
"esbuild-plugin-environment": "^0.4.0",
138138
"esbuild-plugin-glsl": "^1.2.2",
139-
"esbuild-style-plugin": "^1.6.3",
139+
"esbuild-plugin-inline-css": "^0.0.1",
140140
"extra-iterable": "^2.5.22",
141141
"falafel": "^2.2.5",
142142
"fs-extra": "^10.1.0",

‎tasks/util/bundle_wrapper.mjs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,6 @@ export default async function _bundle(pathToIndex, pathToBundle, opts, cb) {
4646

4747
addWrapper(pathToBundle);
4848

49-
if(pathToBundle.endsWith('.js')) {
50-
var len = pathToBundle.length;
51-
var cssOutput = pathToBundle.slice(0, len - 3) + '.css';
52-
53-
// remove unwanted css file
54-
if (fs.existsSync(cssOutput)) {
55-
fs.unlinkSync(cssOutput);
56-
}
57-
}
58-
5949
if(cb) cb();
6050
}
6151

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /