mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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>
|
||||
<% if (loading) { %>import NuxtLoading from '<%= (typeof loading === "string" ? loading : "./components/nuxt-loading.vue") %>'<% } %>
|
||||
<% css.forEach(function (c) { %>
|
||||
import '<%= c.src || c %>'
|
||||
import '<%= r(c.src || c) %>'
|
||||
<% }) %>
|
||||
|
||||
let layouts = {
|
||||
|
@ -274,7 +274,8 @@ async function generateRoutesAndFiles () {
|
||||
const template = _.template(fileContent, {
|
||||
imports: {
|
||||
serialize,
|
||||
hash
|
||||
hash,
|
||||
r
|
||||
}
|
||||
})
|
||||
const content = template(Object.assign({}, templateVars, {
|
||||
|
Loading…
Reference in New Issue
Block a user