Build process now allows console.log, except when the production flag is set on yarn build, in which case it will throw an error.
This commit is contained in:
@@ -41,7 +41,10 @@ let webpackConfig = {
|
||||
enforce: 'pre',
|
||||
test: /\.js$/,
|
||||
include: config.paths.assets,
|
||||
use: 'eslint',
|
||||
loader: 'eslint-loader',
|
||||
options: {
|
||||
configFile: config.env.production ? config.paths.eslintProd : null,
|
||||
},
|
||||
},
|
||||
{
|
||||
enforce: 'pre',
|
||||
|
||||
Reference in New Issue
Block a user