mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 05:38:46 +00:00
fix build by not requiring optional package in prod
This commit is contained in:
parent
cddd0df4f2
commit
a0624d9507
1 changed files with 2 additions and 1 deletions
|
|
@ -8,7 +8,6 @@ const webpack = require('webpack');
|
|||
const autoprefixer = require('autoprefixer');
|
||||
const postcssEasyImport = require('postcss-easy-import');
|
||||
const IS_PROD = process.env.NODE_ENV === 'production';
|
||||
const eslintFriendlyFormatter = require('eslint-friendly-formatter');
|
||||
|
||||
const baseConfig = {
|
||||
entry: {
|
||||
|
|
@ -102,6 +101,8 @@ const baseConfig = {
|
|||
};
|
||||
|
||||
if (!IS_PROD) {
|
||||
const eslintFriendlyFormatter = require('eslint-friendly-formatter'); // eslint-disable-line global-require
|
||||
|
||||
baseConfig.eslint = {
|
||||
formatter: eslintFriendlyFormatter,
|
||||
emitWarning: true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue