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

How to include static assets? #502

Closed
regrettably opened this issue Dec 12, 2018 · 3 comments
Closed

How to include static assets? #502

regrettably opened this issue Dec 12, 2018 · 3 comments

Comments

@regrettably
Copy link

Question

I have certain assets that need to be included in order for my components to render correctly -- namely, fonts and images.
Is there a way I can tell docz to mount a specific folder to a path in order to serve these alongside my component library?

Thanks!

@pedronauck
Copy link
Member

you set set public option on your doczrc.js:

export default {
  public: '/path/to/your/public'
}

Then you can use from /public on your code.

@Jimeno0
Copy link

Jimeno0 commented Apr 16, 2019

Is that possible to change the path to use?
I mean IE to serve from /static instead from /public in your code
Thanks!

@cmtter
Copy link

cmtter commented May 25, 2020

you can see 'docz-core/index.js' at row that like: "const devServerConfig=()....."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants