Skip to content

Commit

Permalink
Merge pull request #1 from darrylsepeda/remove_public_path_index
Browse files Browse the repository at this point in the history
remove webpack public path for index.html goldhand#79
  • Loading branch information
darrylsepeda committed Jun 16, 2017
2 parents d2f8f25 + f8979bf commit 999e5a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class SWPrecacheWebpackPlugin {
const assetGlobs = Object
.keys(compilation.assets)
.map(f => {
return (f === 'index.html') ? f : path.join(outputPath, f);
return (f === 'index.html') ? path.join('/', f) : path.join(outputPath, f);
});

// merge assetGlobs with provided staticFileGlobs and filter using staticFileGlobsIgnorePatterns
Expand Down

0 comments on commit 999e5a8

Please sign in to comment.