Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add browserify support.

Use uglify-js2 to minify the browserify bundle.
  • Loading branch information...
commit 0a9fff75065c921db9485efca5c0c370c97f534e 1 parent c850ef3
@XhmikosR XhmikosR authored
Showing with 5 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +1 −0  .jshintignore
  3. +3 −0  package.json
View
1  .gitignore
@@ -1,3 +1,4 @@
.DS_Store
+/cleancss-browser.js
/node_modules
/npm-debug.log
View
1  .jshintignore
@@ -1,2 +1,3 @@
.git
node_modules
+cleancss-browser.js
View
3  package.json
@@ -28,6 +28,7 @@
"LICENSE"
],
"scripts": {
+ "browserify": "browserify --standalone CleanCSS index.js | uglifyjs --compress --mangle -o cleancss-browser.js",
"bench": "node ./test/bench.js",
"check": "jshint ./bin/cleancss .",
"prepublish": "jshint .",
@@ -37,8 +38,10 @@
"commander": "2.2.x"
},
"devDependencies": {
+ "browserify": "4.x",
"jshint": "2.5.x",
"nock": "0.28.x",
+ "uglify-js": "2.4.x",
"vows": "0.7.x"
},
"engines": {
Please sign in to comment.
Something went wrong with that request. Please try again.