Comments (5)
First, you have to install coffee-script locally:
$ npm install coffee-script
Then you can use this command (from your project root)
$ node_modules/grunt-autoprefixer/node_modules/.bin/autoprefixer --update
Also you can create symlink and use short autoprefixer
command:
$ ln -s ../grunt-autoprefixer/node_modules/.bin/autoprefixer node_modules/.bin/autoprefixer
$ autoprefixer --version
autoprefixer 0.8.20131029
I'm going to add the symlink creation as postinstall script or move autoprefixer in peer dependencies, so this shorthand will work out of the box.
from grunt-autoprefixer.
I used grunt-shell and just made a task to run the update command before starting the server, and before building.
from grunt-autoprefixer.
grunt.registerTask("updateprefixes", [
"shell:updateprefixes"
]);
shell: {
updateprefixes: {
options: {
stdout: true,
execOptions: {
cwd: "node_modules/grunt-autoprefixer/node_modules/.bin"
}
},
command: "autoprefixer --update"
}
}
from grunt-autoprefixer.
BTW, I highly not recomment to use autoprefixer --update
. Just update autoprefixer
npm package, it always contain latest data from Can I Use.
For example, if you update by --update
you will not get support for new properties and bug fixes.
In packages update by autoprefixer --update
should be used only in some very big companies, which can update libraries too often.
from grunt-autoprefixer.
@ai, thanks for making this clear. Anyway, having the shorthand may be useful in some cases.
from grunt-autoprefixer.
Related Issues (20)
- No -ms- prefix for transform HOT 1
- postcss "remove" option
- Not reading files HOT 1
- Wrong sample with multiple files HOT 4
- Fatal error: Unable to write "dist/css/" file (Error code: EISDIR). HOT 1
- na
- process() method is deprecated HOT 16
- Autoprefixer and Grunt Multi Task format support? HOT 1
- Autoprefixer hangs on non existent filepath HOT 4
- Browser list ['> 5% in US'] throws warning HOT 2
- No "autoprefixer" targets found. HOT 2
- Autoprefixer's process() method is deprecated and will removed in next major release. Use postcss([autoprefixer]).process() instead HOT 2
- Incorrect output when multiple transition properties are used
- No autoprefix for cursor property HOT 2
- Re-write css file
- grunt-autoprefixer + grunt-contrib-watch (livereload) + grunt-sass = livereload "catches" every other time
- body::scrollbar
- After npm install grunt-autoprefixer appears issue cb() never called!
- 'not' keyword not work
- Grunt autoprefixer is not adding prefixes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-autoprefixer.