summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/sourcemaps3/webpack.config.js
blob: c4b5f486d1bd328883ca1c1e05fd5d5d2f99a2b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const path = require("path");
const webpack = require("webpack");

module.exports = {
  entry: "./test.js",
  output: {
    path: __dirname,
    filename: "bundle.js"
  },
  devtool: "sourcemap",
  module: {
    loaders: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        loader: "babel-loader"
      }
    ]
  },
  plugins: [
    new webpack.optimize.UglifyJsPlugin({
      compress: {
        warnings: false
      },
      sourceMap: true,
      output: {
        comments: false
      }
    })
  ]
};