This package has been deprecated

Author message:

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

cssnext-loader

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i cssnext-loader

Weekly Downloads

66

Version

1.0.1

License

MIT

Last publish

Collaborators

  • bloodyowl
  • moox