Skip to content

Commit faa596e

Browse files
committed
Fix manifest
1 parent 23de2ec commit faa596e

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

lib/build-bundler.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,19 @@ module.exports = ({ source, target, fingerprint, configDir }) => {
1818
let sourcePath = path.join(source, fileName);
1919

2020
return readFile(sourcePath).then(content => {
21+
let targetPath = path.join(target, fileName);
22+
let outputPath = targetPath;
23+
2124
if(fingerprint) {
22-
fileName = generateFingerprint(fileName, content);
25+
outputPath = path.join(target,
26+
generateFingerprint(fileName, content));
2327
}
2428

25-
let targetPath = path.join(target, fileName);
26-
27-
return createFile(targetPath, content).then(_ => {
29+
return createFile(outputPath, content).then(_ => {
2830
return {
2931
changed: true,
30-
target: path.relative(configDir, sourcePath),
31-
output: path.relative(configDir, targetPath)
32+
target: path.relative(configDir, targetPath),
33+
output: path.relative(configDir, outputPath)
3234
};
3335
});
3436
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"src/test.txt":"/assets/dist/test-e59ff97941044f85df5297e1c302d260.txt"}
1+
{"dist/test.txt":"/assets/dist/test-e59ff97941044f85df5297e1c302d260.txt"}

0 commit comments

Comments
 (0)