Guest User

Untitled

a guest
Aug 29th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. var debug = process.env.NODE_ENV !== "production";
  2. var webpack = require('webpack');
  3.  
  4. module.exports = {
  5. context: __dirname,
  6. devtool: debug ? "inline-sourcemap" : null,
  7. entry: "./js/scripts.js",
  8. output: {
  9. path: __dirname + "/js",
  10. filename: "scripts.min.js"
  11. },
  12. plugins: debug ? [] : [
  13. new webpack.optimize.DedupePlugin(),
  14. new webpack.optimize.OccurenceOrderPlugin(),
  15. new webpack.optimize.UglifyJsPlugin({ mangle: false, sourcemap: false }),
  16. ],
  17. };
Add Comment
Please, Sign In to add comment