UNPKG

443 BJavaScriptView Raw
1var webpack = require("webpack");
2
3module.exports = {
4 entry: './src',
5 output: {
6 library: 'both.io',
7 libraryTarget: 'commonjs2',
8 path: __dirname + '/dist',
9 filename: 'both.min.js',
10 pathinfo: false
11 },
12 plugins: [
13 new webpack.optimize.UglifyJsPlugin({minimize: true})
14 ],
15 module: {
16 loaders: [
17 {
18 test: /\.js$/,
19 exclude: /node_modules/,
20 loader: 'babel-loader'
21 }
22 ]
23 }
24};
\No newline at end of file