UNPKG

890 BJavaScriptView Raw
1var path = require('path');
2var webpack = require('webpack');
3
4module.exports = {
5 devtool: 'cheap-module-source-map',
6 entry: [
7 './index.coffee'
8 ],
9 output: {
10 libraryTarget: 'commonjs2',
11 library: 'Inquisitor',
12 path: path.join(__dirname, 'dist'),
13 filename: 'bundle.js'
14 },
15 module: {
16 loaders: [
17 {
18 test: /\.coffee$/, loader: 'coffee-loader', include: [/src/, /node_modules/]
19 }
20 ]
21 },
22 plugins: [
23 new webpack.IgnorePlugin(/^(buffertools)$/), // unwanted "deeper" dependency
24 new webpack.NoErrorsPlugin(),
25 new webpack.optimize.OccurenceOrderPlugin(),
26 new webpack.DefinePlugin({
27 'process.env': {
28 'NODE_ENV': JSON.stringify('production')
29 }
30 }),
31 new webpack.optimize.UglifyJsPlugin({
32 compressor: {
33 screw_ie8: true,
34 warnings: false
35 }
36 })
37 ]
38};