UNPKG

browser-meshblu-http

Version:
37 lines (35 loc) 857 B
var path = require('path'); var webpack = require('webpack'); module.exports = { entry: [ './src/meshblu-http.coffee' ], output: { library: 'MeshbluHttp', path: path.join(__dirname, 'deploy', 'browser-meshblu-http', 'latest'), filename: 'meshblu-http.bundle.js' }, module: { loaders: [ { test: /\.coffee$/, loader: 'coffee', include: /src/ } ] }, plugins: [ new webpack.IgnorePlugin(/^(buffertools)$/), // unwanted "deeper" dependency new webpack.NoErrorsPlugin(), new webpack.optimize.OccurenceOrderPlugin(), new webpack.DefinePlugin({ 'process.env': { 'NODE_ENV': JSON.stringify('production') } }), new webpack.optimize.UglifyJsPlugin({ compressor: { screw_ie8: true, warnings: false } }) ] };