diff --git a/lib/generators/react_on_rails/templates/base/base/config/webpack/development.js.tt b/lib/generators/react_on_rails/templates/base/base/config/webpack/development.js.tt index 958a314d85..2c4dfb82d0 100644 --- a/lib/generators/react_on_rails/templates/base/base/config/webpack/development.js.tt +++ b/lib/generators/react_on_rails/templates/base/base/config/webpack/development.js.tt @@ -2,7 +2,7 @@ const { devServer, inliningCss } = require('shakapacker'); -const webpackConfig = require('./webpackConfig'); +const generateWebpackConfigs = require('./generateWebpackConfigs'); const developmentEnvOnly = (clientWebpackConfig, _serverWebpackConfig) => { // plugins @@ -18,4 +18,4 @@ const developmentEnvOnly = (clientWebpackConfig, _serverWebpackConfig) => { } }; -module.exports = webpackConfig(developmentEnvOnly); +module.exports = generateWebpackConfigs(developmentEnvOnly); diff --git a/lib/generators/react_on_rails/templates/base/base/config/webpack/webpackConfig.js.tt b/lib/generators/react_on_rails/templates/base/base/config/webpack/generateWebpackConfigs.js.tt similarity index 100% rename from lib/generators/react_on_rails/templates/base/base/config/webpack/webpackConfig.js.tt rename to lib/generators/react_on_rails/templates/base/base/config/webpack/generateWebpackConfigs.js.tt diff --git a/lib/generators/react_on_rails/templates/base/base/config/webpack/production.js.tt b/lib/generators/react_on_rails/templates/base/base/config/webpack/production.js.tt index 2dbea0e014..818d1a7c32 100644 --- a/lib/generators/react_on_rails/templates/base/base/config/webpack/production.js.tt +++ b/lib/generators/react_on_rails/templates/base/base/config/webpack/production.js.tt @@ -1,9 +1,9 @@ <%= 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 generateWebpackConfigs = require('./generateWebpackConfigs'); const productionEnvOnly = (_clientWebpackConfig, _serverWebpackConfig) => { // place any code here that is for production only }; -module.exports = webpackConfig(productionEnvOnly); +module.exports = generateWebpackConfigs(productionEnvOnly); diff --git a/lib/generators/react_on_rails/templates/base/base/config/webpack/test.js.tt b/lib/generators/react_on_rails/templates/base/base/config/webpack/test.js.tt index 9eae93217e..30028627fe 100644 --- a/lib/generators/react_on_rails/templates/base/base/config/webpack/test.js.tt +++ b/lib/generators/react_on_rails/templates/base/base/config/webpack/test.js.tt @@ -1,9 +1,9 @@ <%= add_documentation_reference(config[:message], "// https://github.com/shakacode/react_on_rails_demo_ssr_hmr/blob/master/config/webpack/test.js") %> -const webpackConfig = require('./webpackConfig') +const generateWebpackConfigs = require('./generateWebpackConfigs') const testOnly = (_clientWebpackConfig, _serverWebpackConfig) => { // place any code here that is for test only } -module.exports = webpackConfig(testOnly) +module.exports = generateWebpackConfigs(testOnly)