* Rename browser build output file to ripple-latest-min.js (the name prior to #1061)
* Add unpkg and jsdelivr
This commit is contained in:
Elliot Lee
2019-12-28 11:46:52 -08:00
committed by GitHub
parent 491ce40081
commit 96605a57d4
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,8 @@
"build/ripple-latest-min.js" "build/ripple-latest-min.js"
], ],
"main": "dist/npm/", "main": "dist/npm/",
"unpkg": "build/ripple-latest-min.js",
"jsdelivr": "build/ripple-latest-min.js",
"types": "dist/npm/index.d.ts", "types": "dist/npm/index.d.ts",
"browser": { "browser": {
"ws": "./dist/npm/common/wswrapper.js", "ws": "./dist/npm/common/wswrapper.js",

View File

@@ -41,7 +41,7 @@ module.exports = [
function(env, argv) { function(env, argv) {
const config = getDefaultConfiguration(); const config = getDefaultConfiguration();
config.mode = 'production'; config.mode = 'production';
config.output.filename = `ripple-latest.min.js`; config.output.filename = `ripple-latest-min.js`;
if (process.argv.includes('--analyze')) { if (process.argv.includes('--analyze')) {
config.plugins.push(new BundleAnalyzerPlugin()); config.plugins.push(new BundleAnalyzerPlugin());
} }