Skip to content

Commit

Permalink
fix(*): support ssr (#6)
Browse files Browse the repository at this point in the history
* Fix typo in PricingSlot propTypes

* Remove yarn.lock since package-lock.json is also there

* Use iso-morphic-style-loader instead of style-loader to fix issues with server side rendering
  • Loading branch information
omjokine authored and gergely-nagy committed May 2, 2019
1 parent f3b63ec commit 2294142
Show file tree
Hide file tree
Showing 10 changed files with 6,466 additions and 4,695 deletions.
6 changes: 3 additions & 3 deletions examples/webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default () => ({
{
test: /.jsx?$/,
exclude: /node_modules/,

use: [
{
loader: 'babel-loader',
Expand All @@ -33,7 +33,7 @@ export default () => ({
},
{
test: /\.(css)$/,
loader: 'style-loader!css-loader',
loader: 'iso-morphic-style-loader!css-loader',
},
]
},
Expand All @@ -42,4 +42,4 @@ export default () => ({
// Clean dist folder
new CleanWebpackPlugin(['./dist/build.js']),
]
});
});
4 changes: 2 additions & 2 deletions examples/webpack.config.live.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default () => ({
},
{
test: /\.(css)$/,
loader: 'style-loader!css-loader',
loader: 'iso-morphic-style-loader!css-loader',
},
]
},
Expand All @@ -70,4 +70,4 @@ export default () => ({
new webpack.NamedModulesPlugin(),
// prints more readable module names in the browser console on HMR updates
]
});
});
Loading

0 comments on commit 2294142

Please sign in to comment.