Skip to content

Commit

Permalink
新增postcss-import、postcss-url
Browse files Browse the repository at this point in the history
  • Loading branch information
Baiang committed Jul 17, 2018
1 parent 6d90a61 commit 5685b51
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
"jest-transform-stub": "^1.0.0",
"next-compose-plugins": "^2.1.1",
"open-browser-webpack-plugin": "^0.0.5",
"postcss-import": "^11.1.0",
"postcss-url": "^7.3.2",
"react-addons-test-utils": "15.6.2",
"react-test-renderer": "16.2.0",
"styled-jsx-plugin-sass": "^0.2.4",
Expand All @@ -67,6 +69,7 @@
},
"browserslist": [
"> 1%",
"last 2 versions"
"last 2 versions",
"not ie <= 8"
]
}
9 changes: 6 additions & 3 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module.exports = {
plugins: [
require('autoprefixer')({ browsers: ['last 20 versions', 'Android >= 2.0'] })
]
"plugins": {
"postcss-import": {},
"postcss-url": {},
// to edit target browsers: use "browserslist" field in package.json
"autoprefixer": {}
}
}
2 changes: 1 addition & 1 deletion src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Index extends Component {
}
render () {
return (
<Layout title="兜礼首页222">
<Layout title="兜礼首页">
<div className="f-tac"><img src="./static/images/ad.png" alt=""/></div>
<div>
<div className="container">
Expand Down

0 comments on commit 5685b51

Please sign in to comment.