Skip to content

Commit 4e113a6

Browse files
committed
rename webpackConfig to serverClientOrBoth
1 parent a61deeb commit 4e113a6

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

lib/generators/react_on_rails/templates/base/base/config/webpack/development.js.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const { devServer, inliningCss } = require('shakapacker');
44

5-
const webpackConfig = require('./webpackConfig');
5+
const webpackConfig = require('./serverClientOrBoth');
66

77
const developmentEnvOnly = (clientWebpackConfig, _serverWebpackConfig) => {
88
// plugins

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<%= add_documentation_reference(config[:message], "// https://github.com/shakacode/react_on_rails_demo_ssr_hmr/blob/master/config/webpack/production.js") %>
22

3-
const webpackConfig = require('./webpackConfig');
3+
const webpackConfig = require('./serverClientOrBoth');
44

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

lib/generators/react_on_rails/templates/base/base/config/webpack/test.js.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<%= add_documentation_reference(config[:message], "// https://github.com/shakacode/react_on_rails_demo_ssr_hmr/blob/master/config/webpack/test.js") %>
22

3-
const webpackConfig = require('./webpackConfig')
3+
const webpackConfig = require('./serverClientOrBoth')
44

55
const testOnly = (_clientWebpackConfig, _serverWebpackConfig) => {
66
// place any code here that is for test only

0 commit comments

Comments
 (0)