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

unminified js #639

Closed
Aloren opened this issue Jan 20, 2022 · 3 comments
Closed

unminified js #639

Aloren opened this issue Jan 20, 2022 · 3 comments

Comments

@Aloren
Copy link

Aloren commented Jan 20, 2022

Hi!
First of all thank you for such a great tool and especially documentation and demos :) They are very useful!

I'm quite novice to JS and my question may be quiet dumb for the experts :)
I'm currently debugging my custom page that aggregates multiple rapidocs and have issues with understanding how focus works. Debugging rapidoc-min.js is completely impossibble (even beautified by chrome). So my question is where I can find/how to build nonminified version of rapidoc?

Thanks!

@mrin9
Copy link
Collaborator

mrin9 commented Jan 20, 2022

you may build the non-minified version at your end. to do that clone the repo and

update webpack.config.js to remove minification.
for that you need to replace this part with below snippet

optimization: {
  minimize: false,
}

after this you may build by using

npm install
npm run build

this will produce the non-minified js under the dist folder. use this in your html

@Aloren
Copy link
Author

Aloren commented Jan 20, 2022

Thanks @mrin9, I will try this.

I've found the following feature: https://www.html5rocks.com/en/tutorials/developertools/sourcemaps/
and I wonder why rapidoc-min.js.map was removed in 9.1.3 version? https://packagegalaxy.com/javascript/rapidoc

@mrin9
Copy link
Collaborator

mrin9 commented Jan 21, 2022

I wonder why rapidoc-min.js.map was removed in 9.1.3 version?

It is un-intentional and It could be due to some glitch with out build pipeline.

on checking the config still contains the option to build source-maps and it is building too.

Will keep an eye on this next time we release

@mrin9 mrin9 closed this as completed Jan 21, 2022
mrin9 added a commit that referenced this issue Jan 23, 2022
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

2 participants