Skip to content

Instantly share code, notes, and snippets.

@jacobmischka
Created October 20, 2016 16:08
Show Gist options
  • Save jacobmischka/f92148fa2da0e61385295c54840f6634 to your computer and use it in GitHub Desktop.
Save jacobmischka/f92148fa2da0e61385295c54840f6634 to your computer and use it in GitHub Desktop.
webpack.config.js
var webpack = require('webpack');
module.exports = {
entry: {
app: './src/js/app.js',
vendor: [
'jquery'
]
},
output: {
path: './dist/js/',
publicPath: '/js/',
filename: 'app.js'
},
target: 'web',
plugins: [
new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.js')
],
devtool: 'source-map'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment