1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/webpack.config.js

37 lines
732 B
JavaScript
Raw Normal View History

// docs: http://webpack.github.io/docs/configuration.html
var path = require('path');
var root = path.normalize(path.join(__dirname, '.'));
var js_root = path.join(path.join(root, 'public'), 'js');
module.exports = {
context: js_root,
entry: 'app',
output: {
path: js_root,
filename: 'bundle.js',
publicPath: '/js/'
},
resolve: {
2014-11-06 22:45:17 +01:00
root: [js_root],
extensions: ['', '.js', '.jsx'],
2014-11-06 22:45:17 +01:00
modulesDirectories: ["web_modules", "node_modules"]
},
module: {
loaders: [
{ test: /\.jsx$/, loader: 'jsx?harmony' }
]
},
devtool: "source-map",
externals: {
// stuff not in node_modules can be resolved here.
}
};