Files
doris/ui/webpack.config.js
鹏翔 a88782e0c5 [UI Part 4] A new UI for Frontend (#4602)
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
2020-09-16 15:03:24 +08:00

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);