Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to inject CSS using module.exports? #1456

Closed
irontribe opened this issue Mar 17, 2019 · 3 comments
Closed

Unable to inject CSS using module.exports? #1456

irontribe opened this issue Mar 17, 2019 · 3 comments
Labels
status: awaiting more context Need more context about this issue

Comments

@irontribe
Copy link

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'}]                                                  
    ]                                                                                                                                 
}                                                                                                                                     
 
@shigma
Copy link
Collaborator

shigma commented Mar 17, 2019

Well I tried, and it works.

Did you place your css files under .vuepress/public/assets/css folder?

@ulivz ulivz added the status: awaiting more context Need more context about this issue label Mar 17, 2019
@ulivz
Copy link
Member

ulivz commented Mar 17, 2019

BTW, please following issue guidelines and DO NOT delete issue template. 🙂

@shigma
Copy link
Collaborator

shigma commented Apr 3, 2019

We're closing this issue as stale as it's more than 2 weeks without activity, and without an associated Pull Request. Please feel free to continue discussion. We'll reopen this issue if anything actionable is posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: awaiting more context Need more context about this issue
Projects
None yet
Development

No branches or pull requests

3 participants