Files
redux-scraper/config/webpack/clientWebpackConfig.js
2023-04-04 21:47:52 +09:00

19 lines
706 B
JavaScript

// The source code including full typescript support is available at:
// https://github.com/shakacode/react_on_rails_demo_ssr_hmr/blob/master/config/webpack/clientWebpackConfig.js
const commonWebpackConfig = require('./commonWebpackConfig');
const configureClient = () => {
const clientConfig = commonWebpackConfig();
// server-bundle is special and should ONLY be built by the serverConfig
// In case this entry is not deleted, a very strange "window" not found
// error shows referring to window["webpackJsonp"]. That is because the
// client config is going to try to load chunks.
delete clientConfig.entry['server-bundle'];
return clientConfig;
};
module.exports = configureClient;