Skip to content

Commit fe7db79

Browse files
committed
oops didn't mean to commit that commented out...
1 parent 97ddf48 commit fe7db79

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

tasks/bundle.js

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@ var DEV = (arg === 'dev') || (arg === '--dev');
1818

1919

2020
// Check if style and font build files are there
21-
// var doesFileExist = common.doesFileExist;
22-
// if(!doesFileExist(constants.pathToCSSBuild) || !doesFileExist(constants.pathToFontSVG)) {
23-
// throw new Error([
24-
// 'build/ is missing one or more files',
25-
// 'Please run `npm run preprocess` first'
26-
// ].join('\n'));
27-
// }
21+
var doesFileExist = common.doesFileExist;
22+
if(!doesFileExist(constants.pathToCSSBuild) || !doesFileExist(constants.pathToFontSVG)) {
23+
throw new Error([
24+
'build/ is missing one or more files',
25+
'Please run `npm run preprocess` first'
26+
].join('\n'));
27+
}
2828

29-
// // Browserify plotly.js
30-
// _bundle(constants.pathToPlotlyIndex, constants.pathToPlotlyDist, {
31-
// standalone: 'Plotly',
32-
// debug: DEV,
33-
// pathToMinBundle: constants.pathToPlotlyDistMin
34-
// });
29+
// Browserify plotly.js
30+
_bundle(constants.pathToPlotlyIndex, constants.pathToPlotlyDist, {
31+
standalone: 'Plotly',
32+
debug: DEV,
33+
pathToMinBundle: constants.pathToPlotlyDistMin
34+
});
3535

36-
// // Browserify the geo assets
37-
// _bundle(constants.pathToPlotlyGeoAssetsSrc, constants.pathToPlotlyGeoAssetsDist, {
38-
// standalone: 'PlotlyGeoAssets'
39-
// });
36+
// Browserify the geo assets
37+
_bundle(constants.pathToPlotlyGeoAssetsSrc, constants.pathToPlotlyGeoAssetsDist, {
38+
standalone: 'PlotlyGeoAssets'
39+
});
4040

4141
// Browserify the plotly.js with meta
4242
_bundle(constants.pathToPlotlyIndex, constants.pathToPlotlyDistWithMeta, {
@@ -45,11 +45,11 @@ _bundle(constants.pathToPlotlyIndex, constants.pathToPlotlyDistWithMeta, {
4545
then: makeSchema(constants.pathToPlotlyDistWithMeta, constants.pathToSchema)
4646
});
4747

48-
// // Browserify the plotly.js partial bundles
49-
// constants.partialBundlePaths.forEach(function(pathObj) {
50-
// _bundle(pathObj.index, pathObj.dist, {
51-
// standalone: 'Plotly',
52-
// debug: DEV,
53-
// pathToMinBundle: pathObj.distMin
54-
// });
55-
// });
48+
// Browserify the plotly.js partial bundles
49+
constants.partialBundlePaths.forEach(function(pathObj) {
50+
_bundle(pathObj.index, pathObj.dist, {
51+
standalone: 'Plotly',
52+
debug: DEV,
53+
pathToMinBundle: pathObj.distMin
54+
});
55+
});

0 commit comments

Comments
 (0)