mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +00:00
[fix] resolve css imports
This resolves problems with windows paths
This commit is contained in:
parent
7f337cdadf
commit
1f6c3a9a7b
@ -8,7 +8,7 @@
|
|||||||
<script>
|
<script>
|
||||||
<% if (loading) { %>import NuxtLoading from '<%= (typeof loading === "string" ? loading : "./components/nuxt-loading.vue") %>'<% } %>
|
<% if (loading) { %>import NuxtLoading from '<%= (typeof loading === "string" ? loading : "./components/nuxt-loading.vue") %>'<% } %>
|
||||||
<% css.forEach(function (c) { %>
|
<% css.forEach(function (c) { %>
|
||||||
import '<%= c.src || c %>'
|
import '<%= r(c.src || c) %>'
|
||||||
<% }) %>
|
<% }) %>
|
||||||
|
|
||||||
let layouts = {
|
let layouts = {
|
||||||
|
@ -274,7 +274,8 @@ async function generateRoutesAndFiles () {
|
|||||||
const template = _.template(fileContent, {
|
const template = _.template(fileContent, {
|
||||||
imports: {
|
imports: {
|
||||||
serialize,
|
serialize,
|
||||||
hash
|
hash,
|
||||||
|
r
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const content = template(Object.assign({}, templateVars, {
|
const content = template(Object.assign({}, templateVars, {
|
||||||
|
Loading…
Reference in New Issue
Block a user