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

Skip to content

Commit 9b77ee3

Browse files
author
Chris Wainwright
committed
Publishing minified files to own dist packages
1 parent b453045 commit 9b77ee3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tasks/sync_packages.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,26 @@ constants.partialBundlePaths
4141
}])
4242
.forEach(syncPartialBundlePkg);
4343

44+
// sync "minified partial bundle" packages
45+
constants.partialBundlePaths
46+
.map(function(d) {
47+
return {
48+
name: 'plotly.js-' + d.name + '-dist-min',
49+
index: d.index,
50+
main: 'plotly-' + d.name + '.min.js',
51+
dist: d.distMin,
52+
desc: 'Ready-to-use minified plotly.js ' + d.name + ' distributed bundle.',
53+
};
54+
})
55+
.concat([{
56+
name: 'plotly.js-dist-min',
57+
index: path.join(constants.pathToLib, 'index.js'),
58+
main: 'plotly.min.js',
59+
dist: constants.pathToPlotlyDistMin,
60+
desc: 'Ready-to-use minified plotly.js distributed bundle.',
61+
}])
62+
.forEach(syncPartialBundlePkg);
63+
4464
// sync "locales" package
4565
syncLocalesPkg({
4666
name: 'plotly.js-locales',

0 commit comments

Comments
 (0)