mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
43ff5732aa
Please note that scripts and webpack is moved from devDependences to dependencies. This is due to heroku running the build process in production mode.
37 lines
718 B
JavaScript
37 lines
718 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: 'app',
|
|
|
|
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.
|
|
}
|
|
|
|
};
|