 copyWebpackPlugin = new CopyWebpackPlugin []
 ###
 
+# this is like #ifdef in the source code. It is particularly useful in the
+# source code of SMC, such that it knows about itself's version and where
+# mathjax is. The version&date is shown in the hover-title in the footer (year)
 setNODE_ENV          = new webpack.DefinePlugin
                                 'process.env' :
                                    'NODE_ENV' : JSON.stringify(NODE_ENV)


mathjaxVersionedSymlink = new MathjaxVersionedSymlink()

# plugins

# deterministic hashing for assets
WebpackSHAHash = require('webpack-sha-hash')
webpackSHAHash = new WebpackSHAHash()

# cleanup like "make distclean"
CleanWebpackPlugin = require('clean-webpack-plugin')
cleanWebpackPlugin = new CleanWebpackPlugin [OUTPUT],
                                            verbose: true

{StatsWriterPlugin} = require("webpack-stats-plugin")
statsWriterPlugin   = new StatsWriterPlugin(filename: "webpack-stats.json")

# this is for debugging: adding it prints out a long long json of everything
# that ends up inside the chunks. that way, one knows where which part did end up.
# (i.e. if require.ensure works, etc.)
class PrintChunksPlugin

PrintChunksPlugin.prototype.apply = (compiler) ->
