Skip to content

Commit 02b98ef

Browse files
author
Marek Rozmus
committed
Add css autoprefixer to example
1 parent 4a5ca69 commit 02b98ef

File tree

5 files changed

+118
-43
lines changed

5 files changed

+118
-43
lines changed

examples/package-lock.json

Lines changed: 109 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@babel/plugin-proposal-class-properties": "7.7.4",
3333
"@babel/preset-env": "7.7.6",
3434
"@babel/preset-react": "7.7.4",
35+
"autoprefixer": "^9.7.3",
3536
"babel-eslint": "10.0.3",
3637
"babel-loader": "8.0.6",
3738
"css-loader": "3.3.0",
@@ -42,6 +43,7 @@
4243
"eslint-plugin-react-hooks": "2.3.0",
4344
"gh-pages": "2.1.1",
4445
"html-webpack-plugin": "3.2.0",
46+
"postcss-loader": "^3.0.0",
4547
"prettier": "1.19.1",
4648
"style-loader": "1.0.1",
4749
"stylelint": "12.0.0",

examples/postcss.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
plugins: [require('autoprefixer')]
3+
};

examples/webpack.config.dev.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ module.exports = {
3636
options: {
3737
modules: true
3838
}
39-
}
39+
},
40+
{ loader: 'postcss-loader' }
4041
]
4142
}
4243
]

examples/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ module.exports = {
3636
options: {
3737
modules: true
3838
}
39-
}
39+
},
40+
{ loader: 'postcss-loader' }
4041
]
4142
},
4243
{

0 commit comments

Comments
 (0)