Skip to content

Unable to inject CSS using module.exports?  #1456

@irontribe

Description

@irontribe

My goal is to be able to use Github Pages AND VuePress at the same time. Github Pages expects style sheets to be in /assets/css/, so I'm trying this. Note I tried both .scss and .css just to be sure. Neither gets loaded, even though the files are obviously in the /assets/css/ directory. Can someone help me with this?

module.exports = {                                                                                                                    
  head: [                                                                                                                             
        ['link', {rel: 'stylesheet', type: 'text/css', href: '/assets/css/style.scss'}],                                              
        ['link', {rel: 'stylesheet', type: 'text/css', href: '/assets/css/foo.css'}]                                                  
    ]                                                                                                                                 
}                                                                                                                                     
 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions