Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ef70bf

Browse files
committed
call sync method of prependFile
1 parent 6122516 commit 9ef70bf

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tasks/bundle.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ tasks.push(function(done) {
3737
standalone: 'Plotly',
3838
pathToMinBundle: pathToPlotlyDistMin
3939
}, function() {
40-
prependFile(pathToPlotlyDist, header, common.throwOnError);
41-
prependFile(pathToPlotlyDistMin, header, common.throwOnError);
40+
prependFile.sync(pathToPlotlyDist, header, common.throwOnError);
41+
prependFile.sync(pathToPlotlyDistMin, header, common.throwOnError);
4242

4343
done();
4444
});
@@ -50,8 +50,8 @@ tasks.push(function(done) {
5050
standalone: 'Plotly',
5151
pathToMinBundle: pathToPlotlyStrictDistMin
5252
}, function() {
53-
prependFile(pathToPlotlyStrictDist, header, common.throwOnError);
54-
prependFile(pathToPlotlyStrictDistMin, header, common.throwOnError);
53+
prependFile.sync(pathToPlotlyStrictDist, header, common.throwOnError);
54+
prependFile.sync(pathToPlotlyStrictDistMin, header, common.throwOnError);
5555

5656
done();
5757
});
@@ -62,7 +62,7 @@ tasks.push(function(done) {
6262
_bundle(pathToPlotlyGeoAssetsSrc, pathToPlotlyGeoAssetsDist, {
6363
standalone: 'PlotlyGeoAssets'
6464
}, function() {
65-
prependFile(pathToPlotlyGeoAssetsDist, header, common.throwOnError);
65+
prependFile.sync(pathToPlotlyGeoAssetsDist, header, common.throwOnError);
6666

6767
done();
6868
});
@@ -74,7 +74,7 @@ tasks.push(function(done) {
7474
standalone: 'Plotly',
7575
noCompress: true
7676
}, function() {
77-
prependFile(pathToPlotlyDistWithMeta, header, common.throwOnError);
77+
prependFile.sync(pathToPlotlyDistWithMeta, header, common.throwOnError);
7878

7979
done();
8080
});

tasks/partial_bundle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ module.exports = function partialBundle(tasks, opts) {
6363
var headerDist = header.replace('plotly.js', 'plotly.js (' + name + ')');
6464
var headerDistMin = header.replace('plotly.js', 'plotly.js (' + name + ' - minified)');
6565

66-
if(dist) prependFile(dist, headerDist, common.throwOnError);
67-
if(distMin) prependFile(distMin, headerDistMin, common.throwOnError);
66+
if(dist) prependFile.sync(dist, headerDist, common.throwOnError);
67+
if(distMin) prependFile.sync(distMin, headerDistMin, common.throwOnError);
6868

6969
done();
7070
});

0 commit comments

Comments
 (0)