Skip to content

Commit

Permalink
Cross-platform deterministic asset ids (#2020)
Browse files Browse the repository at this point in the history
  • Loading branch information
Levertion authored and devongovett committed Sep 22, 2018
1 parent 13bf65e commit def6f1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Asset.js
Expand Up @@ -21,7 +21,9 @@ class Asset {
this.id = null;
this.name = name;
this.basename = path.basename(this.name);
this.relativeName = path.relative(options.rootDir, this.name);
this.relativeName = path
.relative(options.rootDir, this.name)
.replace(/\\/g, '/');
this.options = options;
this.encoding = 'utf8';
this.type = path.extname(this.name).slice(1);
Expand Down

0 comments on commit def6f1e

Please sign in to comment.