mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 15:22:56 +08:00
08707f9408
* 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
20 lines
445 B
JavaScript
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;
|