mirror of https://github.com/webpack/webpack.git
				
				
				
			removed extra comment, fixed indentation
This commit is contained in:
		
							parent
							
								
									e5845efd2a
								
							
						
					
					
						commit
						eec6c4d1ab
					
				|  | @ -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) => { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue