Skip to content

Commit

Permalink
fix: mistake in publicPath join
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX committed May 5, 2017
1 parent 23c21d4 commit 4953923
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = function (content) {

var publicPath = this.options.output.publicPath

var meta = { url: publicPath + url }
var meta = { url: path.join(publicPath, url) }

var result = content.match(domModuleRegex)

Expand All @@ -25,7 +25,7 @@ module.exports = function (content) {

if (!emitFile) return 'module.exports = ' + (JSON.stringify(meta))

meta.url = publicPath + result[1] + '.html'
meta.url = path.join(publicPath, result[1] + '.html')

var callback = this.async()
var _this = this
Expand Down
4 changes: 2 additions & 2 deletions react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (content) {

var publicPath = this.options.output.publicPath

var meta = { url: publicPath + url }
var meta = { url: path.join(publicPath, url) }

var result = content.match(domModuleRegex)

Expand All @@ -26,7 +26,7 @@ module.exports = function (content) {

if (!emitFile) return generateTemplate(meta)

meta.url = publicPath + result[1] + '.html'
meta.url = path.join(publicPath, result[1] + '.html')

var callback = this.async()
var _this = this
Expand Down

0 comments on commit 4953923

Please sign in to comment.