Files
ray/webui/webpack.config.js
T
Wapaul1 08707f9408 Integration of Webui with Ray (#32)
* Initial integration of webui with ray

* Re-organized calling of build-webui in setup.py

* Fixed Lint comments on js code

* Fixed more lint issues

* Fixed various issues

* Fixed directory in services.py

* Small changes.

* Changes to match lint
2016-11-17 22:33:29 -08:00

20 lines
445 B
JavaScript

var webpack = require('webpack');
var path = require('path');
var BUILD_DIR = path.resolve(__dirname, 'client/public');
var APP_DIR = path.resolve(__dirname, 'client/app');
var config = {
entry: APP_DIR + '/index.jsx',
output: {path: BUILD_DIR, filename: 'bundle.js'},
module: {
loaders: [{
test: /\.jsx?/,
include: APP_DIR,
loader: 'babel',
query: {presets: ['react']}
}]
}
};
module.exports = config;