We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a143e3 commit 1b962f3Copy full SHA for 1b962f3
webpack.config.js
@@ -15,11 +15,11 @@ const devPlugins = [
15
const prodPlugins = [];
16
const commonPlugins = [];
17
const plugins = dev ? devPlugins.concat(commonPlugins) : prodPlugins.concat(commonPlugins);
18
-
+const entry = dev ? ['webpack/hot/poll?1000', './src/server/main.ts'] : './src/server/main.ts';
19
// TODO: add plugins
20
21
module.exports = {
22
- entry: ['webpack/hot/poll?1000', './src/server/main.ts'],
+ entry,
23
output: {
24
path: path.resolve(__dirname, "./bin"),
25
filename: "server.bundle.js"
0 commit comments