Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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

const developmentEnvOnly = (clientWebpackConfig, _serverWebpackConfig) => {
// plugins
Expand All @@ -18,4 +18,4 @@ const developmentEnvOnly = (clientWebpackConfig, _serverWebpackConfig) => {
}
};

module.exports = webpackConfig(developmentEnvOnly);
module.exports = generateWebpackConfigs(developmentEnvOnly);
Original file line number Diff line number Diff line change
@@ -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);
Original file line number Diff line number Diff line change
@@ -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)
Loading