Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Fix incorrect publicPath
Browse files Browse the repository at this point in the history
  • Loading branch information
artkravchenko committed Dec 15, 2017
1 parent 0976560 commit 2861d78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions res/webpack/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ if (__DEV__) {
new webpack.HotModuleReplacementPlugin(),
new ManifestPlugin({
fileName: 'webpack-chunks.json',
publicPath: '/',
writeToFileEmit: true
})
],
Expand Down Expand Up @@ -127,6 +128,7 @@ if (__DEV__) {
// since the ordering makes sense (after ExtractTextPlugin in this case)
new ManifestPlugin({
fileName: 'webpack-chunks.json',
publicPath: '/',
writeToFileEmit: true
}),
new webpack.optimize.AggressiveMergingPlugin({
Expand Down
3 changes: 2 additions & 1 deletion src/utils/koa-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export function getReactMiddleware(appName, prefix, getRoutes, reduxInitializer,
<RouterContext {...renderProps} />
</Provider>
);

const state = JSON.stringify(store.getState().toJS());

if (fetchHandler.status !== null) {
Expand All @@ -106,7 +107,7 @@ export function getReactMiddleware(appName, prefix, getRoutes, reduxInitializer,
};

if (process.env.NODE_ENV !== 'production') {
paths.webpackChunks['vendor.js'] = 'assets/vendor.js';
paths.webpackChunks['vendor.js'] = '/assets/vendor.js';
}

ctx.staus = 200;
Expand Down

0 comments on commit 2861d78

Please sign in to comment.