npm install grunt-uncss and npm install grunt uncss

89 Views Asked by At

pretty new to grunt and just trying to use uncss. Notice their is 2 way to install it with npm: npm install uncss --save-dev and npm install grunt-uncss --save-dev.

Besides one using phantom.js is their any difference ?? Pretty confused here.

1

There are 1 best solutions below

0
On

Those are actually for two different packages:

  • npm install uncss --save-dev is for the uncss npm package.
  • npm install grunt-uncss --save-dev is for the grunt plugin for uncss

The difference between the two

One you can use with Grunt.js (grunt-uncss), the other you can't (without writing your own task that calls the module)