metamaps--metamaps/frontend/webpack.config.js
Devin Howard 6997142fd9 finish integrating npm. move underscore/backbone into npm management (#577)
* finish integrating npm. move underscore/backbone into npm management

* update docs for npm integration

* allow jsx or js extension

* change underscore version
2016-08-01 15:59:53 -04:00

24 lines
438 B
JavaScript

const path = 'path'
const webpack = 'webpack'
const config = module.exports = {
context: __dirname,
module: {
loaders: [
{
test: /\.(js|jsx)?$/,
exclude: /node_modules/,
loaders: [
"babel-loader?cacheDirectory"
]
}
]
},
entry: {
'metamaps.bundle': './src/index.js'
},
output: {
path: '../app/assets/javascripts/webpacked',
filename: '[name].js'
}
}