mirror of https://github.com/webpack/webpack.git
removed obj destructuring for codacy, added semicolon
This commit is contained in:
parent
eec6c4d1ab
commit
0b609e314f
|
@ -46,14 +46,16 @@ const getReplacer = (value, allowEmpty) => {
|
|||
|
||||
|
||||
const interpolate = (banner, file, hash, chunkHash) => {
|
||||
const [name, ext] = file.split(".");
|
||||
const parts = file.split(".");
|
||||
const name = parts[0];
|
||||
const ext = parts[1];
|
||||
|
||||
return banner
|
||||
.replace(REGEXP_HASH, withHashLength(getReplacer(hash)))
|
||||
.replace(REGEXP_CHUNKHASH, withHashLength(getReplacer(chunkHash)))
|
||||
.replace(REGEXP_NAME, name)
|
||||
.replace(REGEXP_EXT, ext);
|
||||
}
|
||||
};
|
||||
|
||||
class BannerPlugin {
|
||||
constructor(options) {
|
||||
|
|
Loading…
Reference in New Issue