From cddc0217724f1a7661014d50e4c940e623a0c2dc Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 3 Aug 2021 07:12:35 +0000 Subject: Apps drag and drop feature --- library/Sortable/scripts/minify.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 library/Sortable/scripts/minify.js (limited to 'library/Sortable/scripts/minify.js') diff --git a/library/Sortable/scripts/minify.js b/library/Sortable/scripts/minify.js new file mode 100644 index 000000000..e2051a2c2 --- /dev/null +++ b/library/Sortable/scripts/minify.js @@ -0,0 +1,11 @@ +const UglifyJS = require('uglify-js'), + fs = require('fs'), + package = require('../package.json'); + +const banner = `/*! Sortable ${ package.version } - ${ package.license } | ${ package.repository.url } */\n`; + +fs.writeFileSync( + `./Sortable.min.js`, + banner + UglifyJS.minify(fs.readFileSync(`./Sortable.js`, 'utf8')).code, + 'utf8' +); -- cgit v1.2.3