shakacode/react_on_rails

View on GitHub
lib/generators/react_on_rails/templates/base/base/config/webpack/production.js.tt

Summary

Maintainability
Test Coverage
<%= add_documentation_reference(config[:message], "// https://github.com/shakacode/react_on_rails_demo_ssr_hmr/blob/master/config/webpack/production.js") %>

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

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

module.exports = webpackConfig(productionEnvOnly);