[fix] resolve css imports

This resolves problems with windows paths
This commit is contained in:
Pooya Parsa 2017-05-22 02:19:37 +04:30
parent 7f337cdadf
commit 1f6c3a9a7b
2 changed files with 3 additions and 2 deletions

View File

@ -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 = {

View File

@ -274,7 +274,8 @@ async function generateRoutesAndFiles () {
const template = _.template(fileContent, {
imports: {
serialize,
hash
hash,
r
}
})
const content = template(Object.assign({}, templateVars, {