const webpack = require('webpack');

module.exports = {
    entry: './src/index.js',
    output: {
        filename: './dist/html2canvas.js',
        library: 'html2canvas'
    },
    module: {
        loaders: [{
            test: /\.js$/,
            exclude: /node_modules/,
            loader: 'babel-loader'
        }]
    },
    plugins: [
        new webpack.DefinePlugin({
            '__DEV__': true
        })
    ]
};

const webpack = require('webpack');

module.exports = {
    entry: './src/index.js',
    output: {
        filename: './dist/html2canvas.js',
        library: 'html2canvas',
        libraryTarget: 'umd'
    },
    module: {
        loaders: [{
            test: /\.js$/,
            exclude: /node_modules/,
            loader: 'babel-loader'
        }]
    },
    plugins: [
        new webpack.DefinePlugin({
            '__DEV__': true
        })
    ]
};

Define browser build target as umd
Define browser build target as umd
