Skip to content

Instantly share code, notes, and snippets.

@vivekagr
Created August 30, 2015 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vivekagr/f8e1557e93c8fa34246c to your computer and use it in GitHub Desktop.
Save vivekagr/f8e1557e93c8fa34246c to your computer and use it in GitHub Desktop.
example webpack config
var webpack = require("webpack");
module.exports = {
entry: {
'respondent-connections': './surveyapp/static/js/respondent-connections/app.js'
},
output: {
path: './surveyapp/static/js/respondent-connections/',
filename: 'build.min.js'
},
module: {
loaders: [
{
exclude: /(node_modules|bower_components)/,
loader: 'babel'
}
]
},
plugins: [
new webpack.optimize.UglifyJsPlugin({minimize: true})
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment