6997142fd9
* finish integrating npm. move underscore/backbone into npm management * update docs for npm integration * allow jsx or js extension * change underscore version
24 lines
438 B
JavaScript
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'
|
|
}
|
|
}
|