mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix minor problems with relative
This commit is contained in:
parent
4cfe700846
commit
6a562e1fe7
@ -23,7 +23,7 @@ if (process.browser) {
|
||||
|
||||
// Import SSR plugins
|
||||
<% plugins.forEach(function (plugin) { if (plugin.ssr)
|
||||
{ %>let <%= plugin.name %> = require('<%= relative(r(plugin.src)) %>')
|
||||
{ %>let <%= plugin.name %> = require('<%= relative(plugin.src) %>')
|
||||
<%= plugin.name %> = <%= plugin.name %>.default || <%= plugin.name %>
|
||||
<% }}) %>
|
||||
|
||||
|
@ -413,7 +413,11 @@ export default class Builder extends Tapable {
|
||||
if (dest && dest.includes('~')) {
|
||||
return dest
|
||||
}
|
||||
return relative(this.options.buildDir, dest)
|
||||
let rp = relative(this.options.buildDir, dest)
|
||||
if (rp[0] !== '.') {
|
||||
rp = './' + rp
|
||||
}
|
||||
return wp(rp)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user