Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Fix dir of the filename not being preserved #29

Merged
merged 1 commit into from
Dec 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/Injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function manifest(options, publicPath, icons, callback) {
delete content.ios;
var json = JSON.stringify(content, null, 2);
var filename = _path2.default.parse(options.filename);
var output = options.fingerprints ? filename.name + '.' + (0, _Fingerprint2.default)(json) + filename.ext : '' + filename.name + filename.ext;
var output = _path2.default.join(filename.dir, options.fingerprints ? filename.name + '.' + (0, _Fingerprint2.default)(json) + filename.ext : '' + filename.name + filename.ext);
callback(null, {
output: output,
file: (0, _URI.joinURI)(publicPath, output),
Expand Down
5 changes: 4 additions & 1 deletion src/Injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ function manifest (options, publicPath, icons, callback) {
delete content.ios
const json = JSON.stringify(content, null, 2)
const filename = path.parse(options.filename)
const output = options.fingerprints ? `${filename.name}.${generateFingerprint(json)}${filename.ext}` : `${filename.name}${filename.ext}`
const output = path.join(
filename.dir,
options.fingerprints ? `${filename.name}.${generateFingerprint(json)}${filename.ext}` : `${filename.name}${filename.ext}`
)
callback(null, {
output,
file: joinURI(publicPath, output),
Expand Down