diff --git a/tasks/bundle.js b/tasks/bundle.js index b787c13f913..7c6586c1c14 100644 --- a/tasks/bundle.js +++ b/tasks/bundle.js @@ -51,7 +51,6 @@ tasks.push(function(cb) { standalone: 'Plotly', debug: DEV, compressAttrs: true, - packFlat: true, pathToMinBundle: constants.pathToPlotlyDistMin }, cb); }); @@ -68,7 +67,6 @@ tasks.push(function(cb) { _bundle(constants.pathToPlotlyIndex, constants.pathToPlotlyDistWithMeta, { standalone: 'Plotly', debug: DEV, - packFlat: true }, function() { makeSchema(constants.pathToPlotlyDistWithMeta, constants.pathToSchema)(); cb(); @@ -82,7 +80,6 @@ constants.partialBundlePaths.forEach(function(pathObj) { standalone: 'Plotly', debug: DEV, compressAttrs: true, - packFlat: true, pathToMinBundle: pathObj.distMin }, cb); }); diff --git a/tasks/cibundle.js b/tasks/cibundle.js index f6f88ea87a5..5a2310e2295 100644 --- a/tasks/cibundle.js +++ b/tasks/cibundle.js @@ -17,7 +17,6 @@ _bundle(constants.pathToPlotlyIndex, constants.pathToPlotlyBuild, { standalone: 'Plotly', debug: true, compressAttrs: true, - packFlat: true, pathToMinBundle: constants.pathToPlotlyDistMin }); diff --git a/tasks/util/constants.js b/tasks/util/constants.js index 20fa44fd695..e7c97906bb4 100644 --- a/tasks/util/constants.js +++ b/tasks/util/constants.js @@ -86,13 +86,14 @@ module.exports = { uglifyOptions: { mangle: true, - compress: { - warnings: false - }, + // the compress flag break mapbox-gl, + // TODO find a way to only skip compression on mapbox-gl files + compress: false, output: { beautify: false, ascii_only: true }, + sourceMap: false },