Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Commit

Permalink
autoprefixer-loader deprecated, use postcss-loader instead
Browse files Browse the repository at this point in the history
  • Loading branch information
bdefore committed Feb 9, 2016
1 parent 0e1ca77 commit e52037e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 8 additions & 4 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// begin shared setup
const path = require('path');
const webpack = require('webpack');
const autoprefixer = require('autoprefixer');

// begin dev setup
const host = (process.env.HOST || 'localhost');
Expand Down Expand Up @@ -43,6 +44,9 @@ module.exports = {
]
},
progress: true,
postcss: () => {
return [ autoprefixer({ browsers: [ 'last 2 versions' ] }) ];
},
resolve: {
modulesDirectories: [
'src',
Expand Down Expand Up @@ -72,8 +76,8 @@ module.exports = {
module: {
loaders: [
{ test: /\.css$/, loader: 'style!css' },
{ test: /\.less$/, loader: 'style!css?modules&importLoaders=2&sourceMap&localIdentName=[local]___[hash:base64:5]!autoprefixer?browsers=last 2 version!less?outputStyle=expanded&sourceMap' },
{ test: /\.scss$/, loader: 'style!css?modules&importLoaders=2&sourceMap&localIdentName=[local]___[hash:base64:5]!autoprefixer?browsers=last 2 version!sass?outputStyle=expanded&sourceMap' }
{ test: /\.less$/, loader: 'style!css?modules&importLoaders=2&sourceMap&localIdentName=[local]___[hash:base64:5]!postcss!less?outputStyle=expanded&sourceMap' },
{ test: /\.scss$/, loader: 'style!css?modules&importLoaders=2&sourceMap&localIdentName=[local]___[hash:base64:5]!postcss!sass?outputStyle=expanded&sourceMap' }
]
},
plugins: [
Expand All @@ -99,8 +103,8 @@ module.exports = {
module: {
loaders: [
{ test: /\.css$/, loader: ExtractTextPlugin.extract('style', 'css') },
{ test: /\.less$/, loader: ExtractTextPlugin.extract('style', 'css?modules&importLoaders=2&sourceMap!autoprefixer?browsers=last 2 version!less?outputStyle=expanded&sourceMap=true&sourceMapContents=true') },
{ test: /\.scss$/, loader: ExtractTextPlugin.extract('style', 'css?modules&importLoaders=2&sourceMap!autoprefixer?browsers=last 2 version!sass?outputStyle=expanded&sourceMap=true&sourceMapContents=true') }
{ test: /\.less$/, loader: ExtractTextPlugin.extract('style', 'css?modules&importLoaders=2&sourceMap!postcss!less?outputStyle=expanded&sourceMap=true&sourceMapContents=true') },
{ test: /\.scss$/, loader: ExtractTextPlugin.extract('style', 'css?modules&importLoaders=2&sourceMap!postcss!sass?outputStyle=expanded&sourceMap=true&sourceMapContents=true') }
]
},
plugins: [
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"prepublish": "npm run compile"
},
"dependencies": {
"autoprefixer-loader": "3.1.0",
"autoprefixer": "6.3.1",
"babel-cli": "6.4.5",
"babel-core": "6.4.5",
"babel-eslint": "5.0.0-beta9",
Expand Down Expand Up @@ -60,6 +60,7 @@
"less-loader": "2.2.2",
"lodash": "4.2.1",
"node-sass": "3.4.2",
"postcss-loader": "0.8.0",
"pretty-error": "2.0.0",
"query-string": "3.0.0",
"react": "^0.14.3",
Expand Down

0 comments on commit e52037e

Please sign in to comment.