@@ -18,25 +18,25 @@ var DEV = (arg === 'dev') || (arg === '--dev');
18
18
19
19
20
20
// 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
+ }
28
28
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
+ } ) ;
35
35
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
+ } ) ;
40
40
41
41
// Browserify the plotly.js with meta
42
42
_bundle ( constants . pathToPlotlyIndex , constants . pathToPlotlyDistWithMeta , {
@@ -45,11 +45,11 @@ _bundle(constants.pathToPlotlyIndex, constants.pathToPlotlyDistWithMeta, {
45
45
then : makeSchema ( constants . pathToPlotlyDistWithMeta , constants . pathToSchema )
46
46
} ) ;
47
47
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