2014-10-30 16:56:34 +01:00
|
|
|
// docs: http://webpack.github.io/docs/configuration.html
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
|
|
|
context: __dirname + '/public',
|
2014-10-30 18:25:38 +01:00
|
|
|
entry: './js/app',
|
2014-10-30 16:56:34 +01:00
|
|
|
|
|
|
|
output: {
|
|
|
|
path: __dirname + '/public/js',
|
|
|
|
filename: 'bundle.js',
|
|
|
|
publicPath: '/js/'
|
|
|
|
},
|
|
|
|
|
|
|
|
resolve: {
|
|
|
|
extensions: ['', '.js', '.jsx']
|
|
|
|
},
|
|
|
|
|
|
|
|
module: {
|
|
|
|
loaders: [
|
2014-11-02 22:39:52 +01:00
|
|
|
{ test: /\.jsx$/, loader: 'jsx?harmony' }
|
2014-10-30 16:56:34 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2014-11-02 20:42:12 +01:00
|
|
|
devtool: "source-map",
|
|
|
|
|
2014-10-30 16:56:34 +01:00
|
|
|
externals: {
|
|
|
|
// stuff not in node_modules can be resolved here.
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|