removed extra comment, fixed indentation

This commit is contained in:
Travis Matthews 2017-04-11 19:03:05 -04:00
parent e5845efd2a
commit eec6c4d1ab
1 changed files with 3 additions and 11 deletions

View File

@ -13,18 +13,10 @@ function wrapComment(str) {
return `/*!\n * ${str.split("\n").join("\n * ")}\n */`;
}
/*The following tokens are replaced in the name parameter:
*
[name] - Returns the file name.
[ext] - Returns the extension. [ext] works for most available fields. ExtractTextPlugin is a notable exception to this rule.
[hash] - Returns the build hash. If any portion of the build changes, this changes as well.
[chunkhash] - Returns an entry chunk-specific hash. Each entry defined at the configuration receives a hash of own. If any portion of the entry changes, the hash changes as well. [chunkhash] is more granular than [hash] by definition.
*/
const REGEXP_HASH = /\[hash:?(\d+)?\]/gi,
REGEXP_CHUNKHASH = /\[chunkhash:?(\d+)?\]/gi,
REGEXP_NAME = /\[name\]/gi,
REGEXP_EXT = /\[ext\]/gi;
REGEXP_CHUNKHASH = /\[chunkhash:?(\d+)?\]/gi,
REGEXP_NAME = /\[name\]/gi,
REGEXP_EXT = /\[ext\]/gi;
// withHashLength, getReplacer from lib/TemplatedPathPlugin.js
const withHashLength = (replacer, handlerFn) => {