Coder Social home page Coder Social logo

cssnext-brunch's Introduction

DEPRECATED. Use postcss-brunch instead.


cssnext-brunch

Build Status NPM version

Use tomorrow's CSS syntax, today. Via Brunch.

Issues with the output should be reported on cssnext issue tracker.

Install

$ npm install cssnext-brunch

Usage

Add a cssnext section in the plugins section of your brunch config file

plugins:
    cssnext:
      sourcemap: true
      features:
        prefixes:
          browsers:['> 5%', 'last 3 version', 'IE 8']
      import:
        path: 'app/css'

Options are directly passed to cssnext, so checkout cssnext options directly.

Notes

cssnext-brunch is a compile-type plugin, so it's play well optimizer like clean-css-brunch

SourceMaps

For now, sourcemap is inlined in the generated css. If you want to enable cssnext sourcemap, you should disabled brunch default sourcemap.

Also, it seems that minification (via compress option or via another brunch plugin) broke sourcemap support.

Import

By default, brunch concatenates css files. In order to take advantage of postcss-import, you'll need to add _ to filename (* @import "_filename.css"*. You also need to specify import folder in the brunch config. import: "app/css" for example.

Production

When build for production, inlined sourcemap is disabled.


cssnext-brunch's People

Contributors

lionelb avatar moox avatar ooflorent avatar watilde avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

watilde swizz

cssnext-brunch's Issues

Example config

Can you provide a more complete example of configuration options? I have installed the plugin and tried various options but none of them are working.

Minify breaks calc()

Hi !
I am currently using your Gulp version and it's great.
I encountered a problem with the minification though.

The CSS "calc()" function needs preserved spaces inside, or the browser won't be able to read the calcul. CSSNEXT currently turns "calc(100% + 44px)" into "calc(100%+44px)".

Could you update so it won't break anymore ? :-)

Thank you ! (❁´◡`❁)✲゚

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.