Sha256: 7d00f895b72952a7bad66bab57a573d2bdc5c9881af7e6272df9e9f3bb42ffb0
Contents?: true
Size: 671 Bytes
Versions: 12
Compression:
Stored size: 671 Bytes
Contents
<%= add_documentation_reference(config[:message], "// https://github.com/shakacode/react_on_rails_demo_ssr_hmr/blob/master/config/webpack/commonWebpackConfig.js") %> // Common configuration applying to client and server configuration const { generateWebpackConfig, merge } = require('shakapacker'); const baseClientWebpackConfig = generateWebpackConfig(); 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
12 entries across 12 versions & 1 rubygems