Sha256: acc32755118684ff5e78d6b4b10be4fcf7d483e7c4c217de51a4786cef50ddca
Contents?: true
Size: 656 Bytes
Versions: 2
Compression:
Stored size: 656 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('shakapacker'); 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
2 entries across 2 versions & 1 rubygems