autoprefixer-loader
A autoprefixer loader for webpack.
Usage
var css = require('!raw!autoprefixer!./file.css');
var css = require('!css!autoprefixer!./file.css');
See css-loader to see the effect of processed url(...)
s.
Or within the webpack config:
module: {
loaders: [{
test: /\.css$/,
loader: 'css-loader!autoprefixer-loader?browsers=last 2 version, Firefox 15'
}]
}
Then you can: var css = require('./file.css');
.
Use in tandem with the style-loader to add the css rules to your document
:
module: {
loaders: [
{ test: /\.css/, loader: 'style-loader!css-loader!autoprefixer-loader' }
]
}
and then require('./file.css');
will compile and add the CSS to your page.
Install
npm install autoprefixer-loader --save-dev
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style.
Release History
License
Licensed under the MIT license.