webpack.production.js
const webpackMerge = require("webpack-merge")
const commonConfig = require("./webpack.common.js")
const path = require("path");
const webpack = require("webpack");
const CleanWebpackPlugin = require("clean-webpack-plugin");
module.exports = webpackMerge(commonConfig, {
entry: {
firehose: path.join(__dirname, "lib", "index.js"),
},
plugins: [
new CleanWebpackPlugin(["dist"], {root: process.cwd()}),
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery'
})
]
})