   del(['./dist/*'], done)
 
 gulp.task '_build', ['_cleanDist'], (done) ->
+  env(vars:{ NODE_ENV: 'production' })
+  webpackConfig = require './webpack.config'
   config = _.extend({}, webpackConfig, {
     plugins: [
       new WPExtractText("tutor.min.css")

_ = require 'underscore'
coffeelint      = require 'gulp-coffeelint'
del             = require 'del'
fileExists      = require 'file-exists'
gulp            = require 'gulp'
gutil           = require 'gulp-util'

WPExtractText   = require 'extract-text-webpack-plugin'

TestRunner      = require './test/config/test-runner'

KARMA_CONFIG =
  configFile: __dirname + '/test/config/karma.config.coffee'
