Socket
Socket
Sign inDemoInstall

autoprefixer-loader

Package Overview
Dependencies
28
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    autoprefixer-loader

Autoprefixer loader for webpack


Version published
Weekly downloads
8.3K
increased by21.79%
Maintainers
1
Install size
11.6 MB
Created
Weekly downloads
 

Readme

Source

autoprefixer-loader

A autoprefixer loader for webpack.

Usage

var css = require('!raw!autoprefixer!./file.css'); // Just the CSS
var css = require('!css!autoprefixer!./file.css'); // CSS with processed url(...)s

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

  • 0.1.0 - Initial release

License

Licensed under the MIT license.

Keywords

FAQs

Last updated on 22 Feb 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc