A new FE UI interface implemented with React framework. Need to work with the new Spring framework and RESTful API in #4596. This is a simple UI for Doris. User can develope their own UI if they want Proposal #4308
31 lines
617 B
JavaScript
31 lines
617 B
JavaScript
/**
|
|
* @file test cron
|
|
* @author lpx
|
|
* @since 2020/08/19
|
|
*/
|
|
const devConfig = require('./config/webpack.dev');
|
|
const prodConfig = require('./config/webpack.prod');
|
|
|
|
const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');
|
|
|
|
const smp = new SpeedMeasurePlugin();
|
|
|
|
let config = devConfig;
|
|
|
|
switch (process.env.NODE_ENV) {
|
|
case 'prod':
|
|
case 'production':
|
|
config = prodConfig;
|
|
break;
|
|
case 'dev':
|
|
case 'development':
|
|
config = devConfig;
|
|
break;
|
|
default:
|
|
config = devConfig;
|
|
}
|
|
|
|
const webpackConfig = config;
|
|
|
|
module.exports = smp.wrap(webpackConfig);
|