1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/webpack.config.js
Anders Olsen Sandvik f01ef69d7e #108 Add eslint-config-spt and remove jshint (#111)
* #108 Add eslint-config-spt

* #108 Ignore bundle.js file

* #108 Change eslint ignore path to a glob file

* Remove jshint and follow more of eslint rules
2016-04-24 22:41:37 +02:00

37 lines
728 B
JavaScript

// docs: http://webpack.github.io/docs/configuration.html
var path = require('path');
var root = path.normalize(path.join(__dirname, '.'));
var jsroot = path.join(path.join(root, 'public'), 'js');
module.exports = {
context: jsroot,
entry: 'app',
output: {
path: jsroot,
filename: 'bundle.js',
publicPath: '/js/'
},
resolve: {
root: [jsroot],
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.
}
};