Skip to content

release 1.1.5 adds ~220kb of documentation to p5.min.js #4708

Closed
@neefrehman

Description

@neefrehman

The 1.1.5 release has increased the size of p5.min.js by a substantial amount, which you can see when looking at the assets on the release page (p5.js has stayed the same size). Downloading the file and looking at its contents shows that the extra ~220kb is made up of documentation like below:

p5:{alpha:{name:"alpha",params:[{name:"color",description:'<p><a href="#/p5.Color">p5.Color</a> object, color components,\n or CSS color</p>\n',type:"p5.Color|Number[]|String"}],class:"p5",module:"Color"},blue:{name:"blue",params:[{name:"color",description

It looks like this documentation has been introduced from parameterData.json, by one of the two commits in that release. I'm not sure what the build error that needed to be fixed was, but it looks like parameterData.json still needs to be excluded from the minified build process.

Most appropriate sub-area of p5.js?

  • Color
  • Core/Environment/Rendering
  • Data
  • Dom
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Other: Bundling

Details about the bug:

  • p5.js version: >1.1.5
  • Web browser and version: all
  • Operating System: all
  • Steps to reproduce this: n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions