Skip to content

Commit c5797dd

Browse files
author
Chris Wainwright
committed
Adding documentation for dist min npm packages
1 parent 9b77ee3 commit c5797dd

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Diff for: tasks/stats.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ function getMainBundleInfo() {
142142
'',
143143
constants.partialBundlePaths.map(makeBundleHeaderInfo).join('\n'),
144144
'',
145-
'Starting in `v1.39.0`, each plotly.js partial bundle has a corresponding npm package with no dependencies.'
145+
'Starting in `v1.39.0`, each plotly.js partial bundle has a corresponding npm package with no dependencies.',
146+
'',
147+
'Starting in `v1.50.0`, the minified version of each partial bundle is also published to npm in a separate "dist min" package.',
148+
''
146149
];
147150
}
148151

@@ -209,6 +212,13 @@ function makeBundleInfo(pathObj) {
209212
'var Plotly = require(\'' + pkgName + '\');',
210213
'```',
211214
'',
215+
'#### dist min npm package (starting in `v1.50.0`)',
216+
'',
217+
'Install [`' + pkgName + '-min`](https://www.npmjs.com/package/' + pkgName + '-min) with',
218+
'```',
219+
'npm install ' + pkgName + '-min',
220+
'```',
221+
'',
212222
'#### Other plotly.js entry points',
213223
'',
214224
'| Flavor | Location |',

0 commit comments

Comments
 (0)