diff options
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/sourcemaps3/webpack.config.js')
-rw-r--r-- | devtools/client/debugger/test/mochitest/examples/sourcemaps3/webpack.config.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/sourcemaps3/webpack.config.js b/devtools/client/debugger/test/mochitest/examples/sourcemaps3/webpack.config.js new file mode 100644 index 0000000000..c4b5f486d1 --- /dev/null +++ b/devtools/client/debugger/test/mochitest/examples/sourcemaps3/webpack.config.js @@ -0,0 +1,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 + } + }) + ] +}; |