Skip to content

Commit

Permalink
Use CRA webpack config with Cosmos (ovidiuch#21)
Browse files Browse the repository at this point in the history
* Use CRA webpack config with Cosmos

* Remove space

* Use unresolved path to web pack config
  • Loading branch information
ovidiuch authored Mar 10, 2017
1 parent c8bf7f3 commit 357f4dc
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 182 deletions.
4 changes: 3 additions & 1 deletion cosmos.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default {
componentPaths: ['src/components'],
proxies: ['cosmos/redux-proxy']
proxies: ['src/redux-proxy'],
containerQuerySelector: '#root',
webpackConfigPath: 'react-scripts/config/webpack.config.dev'
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"react-cosmos-redux-proxy": "^2.0.0-beta.6",
"react-cosmos-telescope": "^2.0.0-beta.7",
"react-cosmos-webpack": "^2.0.0-beta.8",
"react-scripts": "0.9.0",
"webpack": "^2.2.1"
"react-scripts": "0.9.5",
"webpack": "1.14.0"
},
"scripts": {
"start": "react-scripts start",
Expand Down
File renamed without changes.
Loading

0 comments on commit 357f4dc

Please sign in to comment.