Skip to content
Snippets Groups Projects
Commit c81eb0e8 authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

SSDM-14011 : V3 JS API : provide UMD and ESM bundles - make uglify command...

SSDM-14011 : V3 JS API : provide UMD and ESM bundles - make uglify command work without installing it globally
parent b53dd561
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -29,7 +29,7 @@ npm install
# create AMD (RequireJS) bundle
node r.js -o $TEMP_DIR/r.config.js baseUrl=$V3_DIR optimize=none out=$TEMP_DIR/openbis.bundle.js
uglifyjs $TEMP_DIR/openbis.bundle.js -o $TEMP_DIR/openbis.bundle.min.js
npm run uglifyjs -- $TEMP_DIR/openbis.bundle.js -o $TEMP_DIR/openbis.bundle.min.js
# create UMD and ESM bundles
node $TEMP_DIR/webpack.config.v3api.generate.entry.js > $TEMP_DIR/webpack.config.v3api.entry.js
......
......@@ -5,6 +5,7 @@
"uglify-js": "^3.17.4"
},
"scripts": {
"uglifyjs": "uglifyjs",
"v3api.esm": "webpack-cli --config webpack.config.v3api.module-esm.js",
"v3api.umd": "webpack-cli --config webpack.config.v3api.module-umd.js"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment