aboutsummaryrefslogblamecommitdiffstats
path: root/library/Sortable/scripts/minify.js
blob: e2051a2c28ac71f6117c199ed40199f9c91ecf6a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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'
);