Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

fix: return missing important information #306

Merged
merged 1 commit into from Jun 15, 2018
Merged

Conversation

alexander-akait
Copy link
Member

@alexander-akait alexander-akait commented May 31, 2018

fixes #281

Before: single warning for an asset, After: each warning separate
Before: info about the asset, After: information missing
Before: note about UglifyJS, After: no info

  1. Each warning separate, it is allow filtering compilation.warning for plugins and who run webpack using own script (i have many questions in gitter how it is better do and one warning on an assets is best solution)
  2. Add information about the asset
  3. Add information about UglifyJS

src/index.js Outdated
@@ -106,7 +106,7 @@ class UglifyJsPlugin {
}
}

return warningMessage;
return `「UglifyJs」 ${warningMessage} in ${file}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the brackets. validateOptions does not add them.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ooflorent just use UglifyJs?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe UglifyJs Plugin just as here:

validateOptions(schema, options, 'UglifyJs Plugin');

@alexander-akait
Copy link
Member Author

@ooflorent done 👍

@alexander-akait alexander-akait merged commit 4f50156 into master Jun 15, 2018
@alexander-akait alexander-akait deleted the issue-281 branch June 15, 2018 19:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warning output missed important information
2 participants