Sha256: f4dc8e8f0fa670855f72d4c42511f46341e59450babe6e810a0500dcc9ef429a
Contents?: true
Size: 895 Bytes
Versions: 20
Compression:
Stored size: 895 Bytes
Contents
<%= add_documentation_reference(config[:message], "// https://github.com/shakacode/react_on_rails_demo_ssr_hmr/blob/master/config/webpack/development.js") %> const { devServer, inliningCss } = require('shakapacker'); const webpackConfig = require('./webpackConfig'); const developmentEnvOnly = (clientWebpackConfig, _serverWebpackConfig) => { // plugins if (inliningCss) { // Note, when this is run, we're building the server and client bundles in separate processes. // Thus, this plugin is not applied to the server bundle. // eslint-disable-next-line global-require const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin'); clientWebpackConfig.plugins.push( new ReactRefreshWebpackPlugin({ overlay: { sockPort: devServer.port, }, }), ); } }; module.exports = webpackConfig(developmentEnvOnly);
Version data entries
20 entries across 20 versions & 1 rubygems