Skip to content

Instantly share code, notes, and snippets.

@jerolan
Forked from learncodeacademy/webpack.config.js
Created April 26, 2016 05:06
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 14 You must be signed in to fork a gist
  • Save jerolan/e87bb55f5a0a7232b88c5f5cc67912c6 to your computer and use it in GitHub Desktop.
Save jerolan/e87bb55f5a0a7232b88c5f5cc67912c6 to your computer and use it in GitHub Desktop.
Sample Basic Webpack Config
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 }),
],
};
@Karwinp
Copy link

Karwinp commented Dec 17, 2016

Gracias bro. Estoy viendo los videos del curso.

@josemunozr
Copy link

acá tengo otra opciones que también pueden ser util.

https://gist.github.com/josemunozr/61291028a45cae5531cbbc2ea08c83fa

@alexlecco
Copy link

Yo también estoy siguiendo el curso. Gracias.

@jose909
Copy link

jose909 commented Mar 28, 2017

Yo también estoy siguiendo el curso. Gracias.

@faherrera
Copy link

Siguiendo el curso. Gracias.

@teffcode
Copy link

Thnk u !!!

@cristobaljms
Copy link

siguiendo el curso

@fabianhidalgo3
Copy link

de donde sacaste las dependencias?

@ADomSolutions
Copy link

arranque el curso hoy..te comenze a seguir!

@yagami-escobar
Copy link

Arranque el curso bro (Y)

@LuisFer187
Copy link

Gracias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment