mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
[module] remove extra dot in generated template names
node.js preserves dot in ext
This commit is contained in:
parent
2d7b1b1d60
commit
cb524e0424
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user