tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

webpack.config.js (528B)


      1 const path = require("path");
      2 const webpack = require("webpack");
      3 
      4 module.exports = {
      5  entry: "./test.js",
      6  output: {
      7    path: __dirname,
      8    filename: "bundle.js"
      9  },
     10  devtool: "sourcemap",
     11  module: {
     12    loaders: [
     13      {
     14        test: /\.js$/,
     15        exclude: /node_modules/,
     16        loader: "babel-loader"
     17      }
     18    ]
     19  },
     20  plugins: [
     21    new webpack.optimize.UglifyJsPlugin({
     22      compress: {
     23        warnings: false
     24      },
     25      sourceMap: true,
     26      output: {
     27        comments: false
     28      }
     29    })
     30  ]
     31 };