freeCodeCamp/webpack.config.js

33 lines
569 B
JavaScript
Raw Normal View History

2015-06-29 16:50:25 +00:00
var path = require('path');
module.exports = {
devtool: 'sourcemap',
entry: './client',
output: {
filename: 'bundle.js',
2015-06-29 16:50:25 +00:00
path: path.join(__dirname, '/public/js'),
publicPath: 'public/'
},
module: {
loaders: [
{
test: /\.jsx?$/,
include: [
path.join(__dirname, 'client/'),
path.join(__dirname, 'common/')
],
loaders: [
'babel-loader'
]
},
{
test: /\.json$/,
loaders: [
'json-loader'
]
}
]
},
plugins: []
};