Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var path = require("path");
- var webpack = require("webpack");
- module.exports = {
- entry: {
- vendor: [path.join(__dirname, "client", "vendors.js")]
- },
- output: {
- path: path.join(__dirname, "build", "dll"),
- filename: "dll.[name].js",
- library: "[name]"
- },
- plugins: [
- new webpack.DllPlugin({
- path: path.join(__dirname, "dll", "[name]-manifest.json"),
- name: "[name]",
- context: path.resolve(__dirname, "client")
- }),
- //new webpack.optimize.OccurrenceOrderPlugin(),
- new webpack.optimize.UglifyJsPlugin()
- ],
- resolve: {
- modules: [path.resolve(__dirname, "client"), "node_modules"],
- extensions: [".js", ".jsx", ".json"]
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement