Advertisement
Guest User

Untitled

a guest
May 31st, 2017
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.77 KB | None | 0 0
  1. var path = require("path");
  2. var webpack = require("webpack");
  3.  
  4. module.exports = {
  5.     entry: {
  6.         vendor: [path.join(__dirname, "client", "vendors.js")]
  7.     },
  8.     output: {
  9.         path: path.join(__dirname, "build", "dll"),
  10.         filename: "dll.[name].js",
  11.         library: "[name]"
  12.     },
  13.     plugins: [
  14.         new webpack.DllPlugin({
  15.             path: path.join(__dirname, "dll", "[name]-manifest.json"),
  16.             name: "[name]",
  17.             context: path.resolve(__dirname, "client")
  18.         }),
  19.         //new webpack.optimize.OccurrenceOrderPlugin(),
  20.         new webpack.optimize.UglifyJsPlugin()
  21.     ],
  22.  
  23.     resolve: {
  24.         modules: [path.resolve(__dirname, "client"), "node_modules"],
  25.         extensions: [".js", ".jsx", ".json"]
  26.     }
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement