Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var debug = process.env.NODE_ENV !== "production";
- var webpack = require('webpack');
- module.exports = {
- context: __dirname,
- devtool: debug ? "inline-sourcemap" : null,
- entry: "./js/scripts.js",
- output: {
- path: __dirname + "/js",
- filename: "scripts.min.js"
- },
- plugins: debug ? [] : [
- new webpack.optimize.DedupePlugin(),
- new webpack.optimize.OccurenceOrderPlugin(),
- new webpack.optimize.UglifyJsPlugin({ mangle: false, sourcemap: false }),
- ],
- };
Add Comment
Please, Sign In to add comment