Skip to content

Commit

Permalink
升级roadhog 解决uglify 压缩报错问题 详情请看:sorrycc/blog#68
Browse files Browse the repository at this point in the history
  • Loading branch information
breeze-yang committed Nov 23, 2018
1 parent 52a58a4 commit 1416008
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .webpackrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export default {
es5ImcompatibleVersions: true,
extraBabelPlugins: [
['import', { libraryName: 'antd-mobile', style: true }] //按需加载antd-mobile样式文件
],
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"build": "cross-env API_ENV=prod roadhog build",
"lint": "eslint --ext .js src test",
"precommit": "npm run lint",
"deploy": "npm run build && scp -r dist/ prod-2-deploy:/deploy/production/kk-mobile/",
"deploy-test": "npm run build && scp -r dist/ test-1-deploy:/deploy/test/kk-mobile/"
},
"dependencies": {
Expand All @@ -31,6 +32,6 @@
"eslint-plugin-react": "^7.1.0",
"husky": "^0.12.0",
"redbox-react": "^1.4.3",
"roadhog": "^2.0.0"
"roadhog": "^2.4.0"
}
}
3 changes: 2 additions & 1 deletion src/components/indexPage/LotteryPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export default class LotteryPage extends Component {
onClose={onClose}
>
<img style={{width: '100%'}} src={Images.homepage.turntable} onClick={()=>{
store.dispatch(routerRedux.push('/homepage/loadApp'))
store.dispatch(routerRedux.push('/homepage/loadApp'));
onClose();
}}/>
<div onClick={onClose} style={{
position: 'absolute',
Expand Down
2 changes: 0 additions & 2 deletions src/routes/IndexPage/HomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export default class HomePage extends Component {

render() {
const {homePage, dispatch} = this.props;
console.log('homePage=====')
console.log(homePage)
return (
<div>
<HomeCarousel banners={homePage.banners}/>
Expand Down

0 comments on commit 1416008

Please sign in to comment.