Docz: How to include static assets?

Created on 12 Dec 2018  ·  3Comments  ·  Source: doczjs/docz

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!

Most helpful comment

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

All 3 comments

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.

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fenbka picture fenbka  ·  3Comments

albinekb picture albinekb  ·  3Comments

wldcordeiro picture wldcordeiro  ·  3Comments

mquandalle picture mquandalle  ·  3Comments

YardWill picture YardWill  ·  3Comments