Skip to content

Instantly share code, notes, and snippets.

@creativeaura
Created June 5, 2013 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save creativeaura/5714112 to your computer and use it in GitHub Desktop.
Save creativeaura/5714112 to your computer and use it in GitHub Desktop.
MakeFile
#!/usr/bin/env node
var fs = require('fs'),
compressor = require('node-minify');
new compressor.minify({
type: 'gcc',
fileIn: '../plugin.js',
fileOut: '../minified/plugin.min.js',
callback: function (err) {
if (err) {
console.log(err);
} else {
console.log("JS minified successfully.");
}
}
});
new compressor.minify({
type: 'yui-css',
fileIn: '../plugin.css',
fileOut: '../minified/plugin.min.css',
callback: function (err) {
if (err) {
console.log(err);
} else {
console.log("Main CSS minified successfully.");
}
}
});
BASE = .
build:
cd build && node build.js
.PHONY: build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment