jeudi 26 février 2015

Use Autoprefixer in npm without Gulp

i´m new to node.js and npm.


Do i need to install all these dependencies and devDependencies to use autoprefixer in node, although i don´t use gulp at all?


http://ift.tt/1wjT1jx


I want to use it in node like this:



"scripts": {
"build:css": "autoprefixer -b 'last 2 versions' <assets/styles/main.css | cssmin > dist/main.css"
}


as described here: http://ift.tt/1z1Jy3h


but i get an error saying that the system cannot find a file, don´t know which file it means :(


i installed it with



npm install autoprefixer --save-dev

Aucun commentaire:

Enregistrer un commentaire