mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-28 22:32:42 +00:00
Resolve non-js package importing
This commit is contained in:
parent
03aa65a888
commit
1401434594
@ -8,7 +8,7 @@
|
||||
<script>
|
||||
<% if (loading) { %>import NuxtLoading from '<%= (typeof loading === "string" ? loading : "./components/nuxt-loading.vue") %>'<% } %>
|
||||
<% css.forEach(function (c) { %>
|
||||
import '<%= wp(c.src || c) %>'
|
||||
import '<%= relativeToBuild(resolvePath(c.src || c)) %>'
|
||||
<% }) %>
|
||||
|
||||
let layouts = {
|
||||
|
@ -242,6 +242,7 @@ export default class Builder extends Tapable {
|
||||
hash,
|
||||
r,
|
||||
wp,
|
||||
resolvePath: this.nuxt.resolvePath.bind(this.nuxt),
|
||||
relativeToBuild: this.relativeToBuild
|
||||
}
|
||||
})
|
||||
|
@ -16,6 +16,7 @@ export default class Nuxt extends Tapable {
|
||||
|
||||
this.options = Options(_options)
|
||||
|
||||
|
||||
this.initialized = false
|
||||
this.errorHandler = this.errorHandler.bind(this)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user