var Clean             = require('clean-webpack-plugin'),
    ExtractTextPlugin = require('extract-text-webpack-plugin'),
    webpack           = require('webpack'),
    webpackConfig     = require('webpack-config');

var config = webpackConfig.fromCwd().merge({
    output: {
        filename: 'videojs.chapter-thumbnails.min.js'
    }
});

config.plugins = [
    new Clean([
        'build'
    ]),

    new ExtractTextPlugin('videojs.chapter-thumbnails.min.css'),

    new webpack.optimize.DedupePlugin(),
    new webpack.optimize.UglifyJsPlugin()
];

module.exports = config;

var Clean             = require('clean-webpack-plugin'),
    ExtractTextPlugin = require('extract-text-webpack-plugin'),
    webpack           = require('webpack'),
    webpackConfig     = require('webpack-config');

var config = webpackConfig.fromCwd().merge({
    output: {
        filename: 'videojs.chapter-thumbnails.min.js'
    }
});

config.plugins = [
    new Clean([
        'build'
    ]),

    new ExtractTextPlugin('videojs.chapter-thumbnails.min.css'),

    new webpack.optimize.DedupePlugin(),
    new webpack.optimize.UglifyJsPlugin({
        comments: false
    })
];

module.exports = config;

Remove comments from minified version.
chore(webpack): Remove comments from minified version.
