1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/webpack.config.js
Ivar Conradi Østhus 67c3c50b9b Move to react-router.
Replaced our home built tab-view with the react-router. This
makes routing super simple for us.

https://github.com/rackt/react-router/

relates to #95
2015-03-24 21:25:32 +01:00

37 lines
739 B
JavaScript

// 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: 'UnleashApp',
output: {
path: js_root,
filename: 'bundle.js',
publicPath: '/js/'
},
resolve: {
root: [js_root],
extensions: ['', '.js', '.jsx'],
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.
}
};