question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting dist in doczrc.js doesn't do anything

See original GitHub issue

Bug Report

When I try to set the dist attribute of doczrc.js, no matter what I set it to, dist is still built to .docz/dist/.

A clear and concise description of what the bug is.

To Reproduce

  1. yarn add docz --dev
 14:44:41  ant@vanta  ~/Projects/style-guide  ⬡ v9.5.0   master ✘ ✖ ✹ ✭  6s 
$ cat doczrc.js 
export default {
  title: 'My Components',
  description: 'Styleguide for Me',
  dist: 'dist'
}%                                                                                                                                                   
 14:48:45  ant@vanta  ~/Projects/style-guide  ⬡ v9.5.0   master ✘ ✖ ✹ ✭ 
$ yarn docz build
yarn run v1.7.0
$ /home/ant/Projects/style-guide/node_modules/.bin/docz build
▶  start     Creating an optimized production build...
✔  success   Compiled successfully.

File sizes after gzip:

  125.02 KB     dist/static/js/vendors.b1171617.js
  7.35 KB       dist/static/js/components-logo-logo.37633655.js
  1.15 KB       dist/static/js/runtime~app.00554158.js
  958 B         dist/static/js/components-button-button.f8fdf6cf.js
  845 B (-2 B)  dist/static/js/app.e6da3127.js

Done in 6.75s.

In order to allow us to quickly reproduce you issue please include a link to a reproduction repository.

Expected behavior

I expect the built static files to be written to dist.

Enviroment

  • OS: [Ubuntu 18.04]
  • Node/npm version: [Node v9.5.0, 5.6.0]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Jonarzzcommented, Jul 25, 2018

I think it should also be changed on this Introduction page: https://www.docz.site/introduction/deploying-your-docs

0reactions
pedronauckcommented, Jul 25, 2018

For sure @Jonarzz, I didn’t see this error, I’ll fix it now, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting dist in doczrc.js doesn't do anything · Issue #92 - GitHub
Bug Report When I try to set the dist attribute of doczrc.js, no matter what I set it to, dist is still built...
Read more >
Project Configuration - Docz
Like use plugins, chose themes, set project title, and other things. To customize your project configuration you can use doczrc.js following this reference....
Read more >
How to Deploy Docz on Gitlab Pages | Haseeb Majid
First create a new folder called docs in your project root. Then we will create our first page called Introduction.mdx (this name doesn't...
Read more >
Must use import to load ES module - node.js - Stack Overflow
\node_modules\got\dist\source\index.js require() of ES modules is not supported. What. I'm not using require , I'm using import ...
Read more >
Docz: It Has Never Been So Easy to Document Your Things! - Morioh
You can have yarn docz build emit to a different directory by providing a path to the dest field in your doczrc.js or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found