Skip to content
Permalink
Browse files
tweak
  • Loading branch information
jamesgeorge007 committed Aug 10, 2019
1 parent fa3b3ef commit 4f003c2cac212285fc47890a0026554f7052ac6b
Showing with 3 additions and 6 deletions.
  1. +3 −6 lib/BannerPlugin.js
@@ -81,7 +81,6 @@ class BannerPlugin {
continue;
}

let basename;
let query = "";
let filename = file;
const hash = compilation.hash;
@@ -94,11 +93,9 @@ class BannerPlugin {

const lastSlashIndex = filename.lastIndexOf("/");

if (lastSlashIndex === -1) {
basename = filename;
} else {
basename = filename.substr(lastSlashIndex + 1);
}
const basename = lastSlashIndex
? filename
: filename.substr(lastSlashIndex + 1);

const data = {
hash,

0 comments on commit 4f003c2

Please sign in to comment.