removed obj destructuring for codacy, added semicolon

This commit is contained in:
Travis Matthews 2017-04-11 19:17:44 -04:00
parent eec6c4d1ab
commit 0b609e314f
1 changed files with 4 additions and 2 deletions

View File

@ -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) {