MCPcopy Create free account
hub / github.com/adearriba/ShopifyCheckoutJS / minifyES5

Function minifyES5

gulpfile.js:43–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43function minifyES5(){
44 return src(destFile)
45 .pipe(babel({
46 presets: ["@babel/preset-env"]
47 }))
48 .pipe(rename(`checkout.es5.js`))
49 .pipe(dest(destFolder))
50 .pipe(uglify())
51 .pipe(rename({ extname: '.min.js' }))
52 .pipe(dest(destFolder));
53}
54
55function generateNpmPackage(){
56 return src([destFile, packageJson, readme])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected