mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-24 22:19:48 +05:30
Improve config check warning
This commit is contained in:
parent
a4b653a5a4
commit
a69ae9d3c6
@ -6,6 +6,7 @@ const path = require('path');
|
||||
|
||||
const webpack = require('webpack');
|
||||
const loaderUtils = require('loader-utils');
|
||||
const chalk = require('chalk');
|
||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const cssUrl = require('webpack-utils/cssUrl');
|
||||
@ -24,7 +25,11 @@ let config = {};
|
||||
try {
|
||||
config = require('./config/env.js');
|
||||
} catch (err) {
|
||||
console.error('\n\n===\nCan not find config/env.js. Running with defaults\n===\n\n', err);
|
||||
console.log(chalk.yellow('\nCan not find config/env.js. Running with defaults\n\n'));
|
||||
|
||||
if (err.code !== 'MODULE_NOT_FOUND') {
|
||||
console.error(err);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user