You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I work on a PHP-based CMS that uses JSON5. We try to add all third party JS in non-minified form as it's helpful when debugging. Where can I get a copy of non-minified build of JSON5? I think there should be one in the repository or at least linked in the README.md as this can be a potential deterrent to user adoption.
The text was updated successfully, but these errors were encountered:
Fixed. The non-minified version is at dist/index.js and the minified version is at dist/index.min.js. You'll need to upgrade to v2.0.0 to see the change.
@jordanbtucker I can't actually see the files in the repo. The dist directory is specified in the .gitignore file, did you perhaps forget to commit it? Or do you mean that these files should exist after running the build command?
Sorry for the confusion. No, the dist directory is not committed to the repository, but it is included in the npm package. Here's a few ways to access dist/index.js.
git clone https://github.com/json5/json5
cd json5
npm install
npm run build
Find the file at dist/index.js
By the way, there's a few long lines of regular expressions near the beginning of the file, which might make it seem like it's minified, but if you look further down the file, you'll see it's not.
Hi,
I work on a PHP-based CMS that uses JSON5. We try to add all third party JS in non-minified form as it's helpful when debugging. Where can I get a copy of non-minified build of JSON5? I think there should be one in the repository or at least linked in the README.md as this can be a potential deterrent to user adoption.
The text was updated successfully, but these errors were encountered: