Ver Fonte

Merge branch 'fix-build-error' of https://github.com/creeperyang/react-static-boilerplate into creeperyang-fix-build-error

Conflicts:
	tools/config.js
Konstantin Tarkus há 9 anos atrás
pai
commit
e91361c32c
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      tools/config.js

+ 4 - 4
tools/config.js

@@ -96,7 +96,7 @@ const config = {
 // Configuration for the client-side bundle
 const appConfig = merge({}, config, {
   entry: [
-    ...(WATCH && ['webpack-hot-middleware/client']),
+    ...(WATCH ? ['webpack-hot-middleware/client'] : []),
     './app.js',
   ],
   output: {
@@ -104,14 +104,14 @@ const appConfig = merge({}, config, {
   },
   plugins: [
     ...config.plugins,
-    ...(!DEBUG && [
+    ...(DEBUG ? [] : [
       new webpack.optimize.DedupePlugin(),
       new webpack.optimize.UglifyJsPlugin({compress: {warnings: VERBOSE}}),
       new webpack.optimize.AggressiveMergingPlugin(),
     ]),
-    ...(WATCH && [
+    ...(WATCH ? [
       new webpack.HotModuleReplacementPlugin(),
-    ]),
+    ] : []),
   ],
 });