Sha256: dfb47dcf40e8e25344886e8edfd91cf998746980a1a3633b663d4ec718543e2b

Contents?: true

Size: 481 Bytes

Versions: 5

Compression:

Stored size: 481 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/production.js") %>

process.env.NODE_ENV = process.env.NODE_ENV || 'production';

const webpackConfig = require('./webpackConfig');

const productionEnvOnly = (_clientWebpackConfig, _serverWebpackConfig) => {
  // place any code here that is for production only
};

module.exports = webpackConfig(productionEnvOnly);

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
react_on_rails-13.0.0.beta.0 lib/generators/react_on_rails/templates/base/base/config/webpack/production.js.tt
react_on_rails-12.6.0 lib/generators/react_on_rails/templates/base/base/config/webpack/production.js.tt
react_on_rails-12.5.2 lib/generators/react_on_rails/templates/base/base/config/webpack/production.js.tt
react_on_rails-12.5.1 lib/generators/react_on_rails/templates/base/base/config/webpack/production.js.tt
react_on_rails-12.5.0 lib/generators/react_on_rails/templates/base/base/config/webpack/production.js.tt