Giter VIP home page Giter VIP logo

generator-surprise's People

Contributors

imagehat avatar rmknecht avatar

Watchers

 avatar  avatar  avatar

generator-surprise's Issues

We should update our gulp flow and tasks.

Let's update our gulp workflow to move source files out of public to source/ and use the more current gulpfile.babel.js setup with separate tasks defined in gulp-tasks/.

Bring back autoprefixer

CSS Nano strips all "unneccesary" vendor prefixes and does not add new prefixes to the file by default.

I'd vote for bringing back autoprefixer. One option would be just to add the autoprefixer options and set the add flag. (Note that it only prefixes the minified version this way, which might be okay).

.pipe(gulp.dest(css_dir))
.pipe(rename({suffix: '.min'}))
.pipe(cssnano({
        autoprefixer: { browsers: [['last 2 versions', '> 1%', 'IE 9']], add: true}
    }))
.pipe(gulp.dest(css_dir))

Alternatively I think we could run autoprefixer first, and disable the cssnano optimisation completely for the minified file, but haven't tested this out.

.pipe(prefix({
        browsers: ['last 2 versions', '> 1%', 'IE 9']
    }))
.pipe(gulp.dest(css_dir))
.pipe(rename({suffix: '.min'}))
.pipe(cssnano({
        autoprefixer: false
    }))
.pipe(gulp.dest(css_dir))

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.