Removed unwanted dirs after build
MODIFY
build/webpack.common.js
build/webpack.common.js
@@ -49,7 +49,7 @@ const config = {
new webpack.ProgressPlugin(),
new CopyPlugin({
patterns: [
- { from: 'src/assets/', to: 'assets/', globOptions: { ignore: ['**/configs/**'] } },
+ { from: 'src/assets/', to: 'assets/', globOptions: { ignore: ['**/configs*/**', '**/config-template*', '**/ups-template*', '**/cla'] } },
{ from: 'src/integration/pricing/convergent-charging/assets/', to: 'integration/pricing/convergent-charging/assets/', noErrorOnMissing: true }
]
})

MODIFY
src/utils/Configuration.ts
src/utils/Configuration.ts
@@ -29,6 +29,7 @@ import OICPEndpointConfiguration from '../types/configuration/OICPEndpointConfig
import OICPServiceConfiguration from '../types/configuration/OICPServiceConfiguration';
import SchedulerConfiguration from '../types/configuration/SchedulerConfiguration';
import StorageConfiguration from '../types/configuration/StorageConfiguration';
+import Utils from './Utils';
import WSClientConfiguration from '../types/configuration/WSClientConfiguration';
import WSDLEndpointConfiguration from '../types/configuration/WSDLEndpointConfiguration';
import chalk from 'chalk';
@@ -428,7 +429,7 @@ export default class Configuration {
private static deprecateConfigurationKey(key: string, configSectionName: string, logMsgToAppend = '') {
if (!Configuration.isUndefined(Configuration.getConfig()[configSectionName][key])) {
- console.warn(`Deprecated configuration key '${key}' usage in section '${configSectionName}'${logMsgToAppend && '. ' + logMsgToAppend}`);
+ Utils.isDevelopmentEnv() && console.warn(chalk.yellow(`Deprecated configuration key '${key}' usage in section '${configSectionName}'${logMsgToAppend && '. ' + logMsgToAppend}`));
}
}

MODIFY
webpack.config.js
webpack.config.js
@@ -10,11 +10,10 @@ const addons = (addonsArg) => {
};
module.exports = (env) => {
-
+ // Get env config
const envConfig = require(`./build/webpack.${env}`);
// Merge configs
const config = merge(commonConfig, envConfig, addons(env.addons));
-
// Return it
return config;
};

Removed unwanted dirs after build