diff --git a/lib/core/file.js b/lib/core/file.js index eca136b13..62cd859ee 100644 --- a/lib/core/file.js +++ b/lib/core/file.js @@ -7,7 +7,7 @@ const utils = require('../utils/utils'); class File { constructor (options) { - this.filename = options.filename; + this.filename = options.filename.replace(/\\/g, '/'); this.type = options.type; this.path = options.path; this.basedir = options.basedir;