Sha256: 56b973fd78d754a93238efdb3aaf762f7fb26ec38d1f2000f5b960caa49b1dda
Contents?: true
Size: 661 Bytes
Versions: 4
Compression:
Stored size: 661 Bytes
Contents
<%= add_documentation_reference(config[:message], "// https://github.com/shakacode/react_on_rails_tutorial_with_ssr_and_hmr_fast_refresh/blob/master/config/webpack/commonWebpackConfig.js") %> // Common configuration applying to client and server configuration const { webpackConfig: baseClientWebpackConfig, merge } = require('@rails/webpacker'); const commonOptions = { resolve: { extensions: ['.css', '.ts', '.tsx'], }, }; // Copy the object using merge b/c the baseClientWebpackConfig and commonOptions are mutable globals const commonWebpackConfig = () => merge({}, baseClientWebpackConfig, commonOptions); module.exports = commonWebpackConfig;
Version data entries
4 entries across 4 versions & 1 rubygems