Skip to content

ezc/cssnext-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
    }
  ]
}

About

Webpack loader for cssnext

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 95.1%
  • HTML 4.9%