 ###
-Webpack configuration file
+# Webpack configuration file
 
 Run dev server with source maps:
 

                        chunks   : []
                        minify   : htmlMinifyOpts

# https://webpack.github.io/docs/stylesheets.html
ExtractTextPlugin = require("extract-text-webpack-plugin")

# merge + minify of included CSS files
cssConfig = JSON.stringify(minimize: true, discardComments: {removeAll: true}, mergeLonghand: true, sourceMap: true)
extractCSS = new ExtractTextPlugin("styles-[hash].css")
extractTextCss  = ExtractTextPlugin.extract("style", "css?sourceMap&#{cssConfig}")
extractTextSass = ExtractTextPlugin.extract("style", "css?#{cssConfig}!sass?sourceMap&indentedSyntax")
extractTextScss = ExtractTextPlugin.extract("style", "css?#{cssConfig}!sass?sourceMap")
extractTextLess = ExtractTextPlugin.extract("style", "css?#{cssConfig}!less?sourceMap")

# custom plugin, to handle the quirky situation of extra *.html files
class LinkFilesIntoTargetPlugin
    constructor: (@files, @target) ->


    collapseWhitespace : true
    conservativeCollapse : true

# this is the main indes.html file, which should be served without any caching
jade2html = new HtmlWebpackPlugin
                        date     : dateISO
                        title    : TITLE
