Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #32 from whichdigital/autoprefixer
Browse files Browse the repository at this point in the history
Add autoprefixer as postcss plugin
  • Loading branch information
katranci committed Aug 27, 2015
2 parents fe7e7d1 + ee9ef96 commit 5c0fe7d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions browserlist
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 5% in GB
last 2 versions
ie > 8
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"description": "A dummy project on how to integrate React and Webpack in a Web project",
"devDependencies": {
"autoprefixer": "^5.2.0",
"babel-core": "^5.8.22",
"babel-loader": "^5.3.2",
"chai": "^3.2.0",
Expand All @@ -19,6 +20,7 @@
"karma-webpack": "^1.7.0",
"mocha": "^2.2.5",
"node-sass": "3.2.0",
"postcss-loader": "^0.6.0",
"react": "^0.13.3",
"react-hot-loader": "^1.2.8",
"sass-loader": "^2.0.0",
Expand Down
1 change: 1 addition & 0 deletions src/book/heading.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import '../colour/colours.scss';

h1 {
display: flex;
&.blue {
color: $blue;
}
Expand Down
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var path = require('path');
var webpack = require('webpack');
var autoprefixer = require('autoprefixer');

module.exports = {
entry: [
Expand Down Expand Up @@ -31,11 +32,12 @@ module.exports = {
},
{
test: /\.scss$/,
loaders: ['style', 'css', 'sass'],
loaders: ['style', 'css', 'postcss', 'sass'],
exclude: /(node_modules)/
}
]
},
postcss: [autoprefixer],
devtool: 'source-map',
devServer: {
contentBase: 'http://localhost:5001'
Expand Down

0 comments on commit 5c0fe7d

Please sign in to comment.