Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

cssnext-loader

cssnext316MITdeprecated1.0.1

cssnext is now postcss-cssnext. cssnext-loader is deprecated. Use postcss-loader. See postcss-cssnext migration guide http://cssnext.io/postcss/

webpack loader for cssnext

webpack, cssnext, css, loader

readme

cssnext-loader Build Status

a webpack loader for cssnext

install

$ npm install cssnext-loader

api

cssnext

in your webpack.config.js

module.exports = {
  entry: "path/to/entry",
  output: {
    path: "path/to/output/",
    filename: "bundle.js"
  },
  cssnext : {
    features : {
      import : {
        path : ["src/assets/stylesheets"]
      }
    }
  }
}

in your js file :

var css = require("style-loader!css-loader!../..!./file.css")

you can also configure webpack so that it always parses CSS files like this :

module: {
  loaders: [
    {
      test:   /\.css$/,
      loader: "style-loader!css-loader!cssnext-loader"
    }
  ]
}

changelog

license

changelog

1.0.1 - 2015-02-13

  • Fixed: saving a @imported css file trigger a webpack build

1.0.0 - 2015-02-06

  • Changed: upgrade to cssnext 1.x

0.2.0 - 2014-12-24

  • Added: improved source maps support (thanks @thetalecrafter)

0.1.1 - 2014-12-02

  • Code simplification

0.1.0 - 2014-11-28

✨ Initial release