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

Commit c0db984

Browse files
committed
Merge pull request #10 from conradz/fix-windows-path
Use concatenation instead of path.join for URLs
2 parents 450311a + b31e799 commit c0db984

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import path from 'path';
2-
31
class AppCache {
42

53
constructor(cache, network, fallback, settings, hash) {
@@ -72,7 +70,7 @@ export default class AppCachePlugin {
7270
const appCache = new AppCache(this.cache, this.network, this.fallback, this.settings, compilation.hash);
7371
Object.keys(compilation.assets)
7472
.filter(asset => !this.exclude.some(pattern => pattern.test(asset)))
75-
.forEach(asset => appCache.addAsset(path.join(publicPath, asset)));
73+
.forEach(asset => appCache.addAsset(publicPath + asset));
7674
compilation.assets[this.output] = appCache;
7775
callback();
7876
});

0 commit comments

Comments
 (0)