ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit 7d732e4abc68a38cc7b2bc9579499a600a92292e
parent 596add908f697385a27e79fc8ea46f92f1d0205b
Author: Konstantin Tarkus <hello@tarkus.me>
Date:   Wed, 11 Jun 2014 09:13:45 +0400

Fix webpack.config.js for production build. Closes #2

Diffstat:
Mconfig/webpack.config.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/config/webpack.config.js b/config/webpack.config.js @@ -1,6 +1,8 @@ // Webpack Configuration // http://webpack.github.io/docs/configuration.html +var webpack = require('webpack'); + module.exports = function (isDebug) { return { output: { @@ -22,7 +24,7 @@ module.exports = function (isDebug) { }, plugins: isDebug ? [] : [ - new webpack.DefinePlugin({'process.env.NODE_ENV': '"production"'}) + new webpack.DefinePlugin({'process.env.NODE_ENV': '"production"'}), new webpack.optimize.DedupePlugin(), new webpack.optimize.UglifyJsPlugin(), new webpack.optimize.OccurenceOrderPlugin(),