Skip to content

Commit

Permalink
Added autoprefixer 😎
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbullll committed Apr 3, 2017
1 parent f80df94 commit 1947a65
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
9 changes: 9 additions & 0 deletions config/webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ const sassLoaders = {
modules: true,
localIdentName: '[local]'
}
}, {
loader: 'postcss-loader',
options: {
plugins() {
return [
require('autoprefixer')
];
}
}
}, {
loader: 'sass-loader'
}]
Expand Down
11 changes: 9 additions & 2 deletions config/webpack.prod.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ const sassLoaders = {
use: [{
loader: 'css-loader',
query: {
path: path.join(__dirname, './lib'),
modules: true,
minimize: true,
localIdentName: '[local]'
}
}, {
loader: 'postcss-loader',
options: {
plugins() {
return [
require('autoprefixer')
];
}
}
}, {
loader: 'sass-loader'
}]
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"main": "lib/index",
"scripts": {
"clean:lib": "del lib umd",
"start": "cross-env NODE_ENV=development webpack-dev-server --config ./config/webpack.config.babel.js",
"start": "npm i && cross-env NODE_ENV=development webpack-dev-server --config ./config/webpack.config.babel.js",
"build:lib": "cross-env NODE_ENV=production webpack ./src/index.js --config ./config/webpack.prod.config.babel.js",
"build": "npm run clean:lib && npm run build:lib"
},
Expand All @@ -28,6 +28,7 @@
},
"homepage": "https://github.com/abraztsov/ReactSimpleFlexGrid#readme",
"devDependencies": {
"autoprefixer": "^6.7.7",
"autoprefixer-loader": "^3.2.0",
"babel-cli": "^6.24.0",
"babel-core": "^6.24.0",
Expand Down Expand Up @@ -61,6 +62,7 @@
"html-webpack-plugin": "^2.28.0",
"node-sass": "^4.5.2",
"path": "^0.12.7",
"postcss-loader": "^1.3.3",
"react": "^15.4.2",
"react-dom": "^15.4.2",
"sass-loader": "^6.0.3",
Expand Down

0 comments on commit 1947a65

Please sign in to comment.