Giter Site home page Giter Site logo

Comments (5)

nDmitry avatar nDmitry commented on August 14, 2024

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.

mrbinky3000 avatar mrbinky3000 commented on August 14, 2024

I used grunt-shell and just made a task to run the update command before starting the server, and before building.

from grunt-autoprefixer.

mrbinky3000 avatar mrbinky3000 commented on August 14, 2024
    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.

ai avatar ai commented on August 14, 2024

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.

nDmitry avatar nDmitry commented on August 14, 2024

@ai, thanks for making this clear. Anyway, having the shorthand may be useful in some cases.

from grunt-autoprefixer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.