Skip to content

Instantly share code, notes, and snippets.

@yumitsu
Created September 29, 2014 10:57
Show Gist options
  • Save yumitsu/cb4c20e0f0a544ed71ee to your computer and use it in GitHub Desktop.
Save yumitsu/cb4c20e0f0a544ed71ee to your computer and use it in GitHub Desktop.
grunt-uglifyjs-package.json
{
"name": "some-package",
"dependencies": {
"uglifyjs": "^2.0",
"grunt": "*",
"grunt-cli": "*",
"grunt-contrib-uglify": "*"
},
"scripts": {
"prepublish": "test -f $PWD/node_modules/.bin/uglifyjs || (rm -f $PWD/node_modules/.bin/uglifyjs && ln -s $PWD/node_modules/grunt-contrib-uglify/node_modules/.bin/uglifyjs $PWD/node_modules/.bin/uglifyjs)"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment