diff --git a/templates/common/_webpack.config.js b/templates/common/_webpack.config.js index 76e5f35..8e41144 100644 --- a/templates/common/_webpack.config.js +++ b/templates/common/_webpack.config.js @@ -20,7 +20,7 @@ module.exports = { devtool: false, entry: [ 'webpack/hot/only-dev-server', - './src/scripts/components/<%= pkg.mainInput %>.jsx' + './src/scripts/components/<% if (reactRouter) { %>main<% } else { %><%= scriptAppName %><% } %>.jsx' ], stats: { diff --git a/templates/common/_webpack.dist.config.js b/templates/common/_webpack.dist.config.js index 45ef333..9a27ac8 100644 --- a/templates/common/_webpack.dist.config.js +++ b/templates/common/_webpack.dist.config.js @@ -18,7 +18,7 @@ module.exports = { debug: false, devtool: false, - entry: './src/scripts/components/<%= pkg.mainInput %>.jsx', + entry: './src/scripts/components/<% if (reactRouter) { %>main<% } else { %><%= scriptAppName %><% } %>.jsx', stats: { colors: true,