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

Version Path
react_on_rails-12.6.0 lib/generators/react_on_rails/templates/base/base/config/webpack/commonWebpackConfig.js.tt
react_on_rails-12.5.2 lib/generators/react_on_rails/templates/base/base/config/webpack/commonWebpackConfig.js.tt
react_on_rails-12.5.1 lib/generators/react_on_rails/templates/base/base/config/webpack/commonWebpackConfig.js.tt
react_on_rails-12.5.0 lib/generators/react_on_rails/templates/base/base/config/webpack/commonWebpackConfig.js.tt