[module] remove extra dot in generated template names

node.js preserves dot in ext
This commit is contained in:
Pooya Parsa 2017-05-15 01:29:06 +04:30
parent 2d7b1b1d60
commit cb524e0424

View File

@ -33,7 +33,7 @@ class Module {
}
// Generate unique and human readable dst filename
const dst = template.fileName ||
(path.basename(srcPath.dir) + '.' + srcPath.name + '.' + hash(src) + '.' + srcPath.ext)
(path.basename(srcPath.dir) + '.' + srcPath.name + '.' + hash(src) + srcPath.ext)
// Add to templates list
const templateObj = {
src,