Skip to content

add grunt yui_dev task *or* add grunt yui_production task, rather than using env var #1129

@toolness

Description

@toolness

So one of the downsides to #1124 is that by default, the <script> links to the p5 libraries are actually set to point to their built locations on the development server, e.g. /lib/p5.js and lib/addons/p5.dom.js. This can be overridden to point to the libraries on p5js.org if the deployer runs export P5_SITE_ROOT=.. before running grunt.

Because (I think?) this wasn't done when building the reference docs for deployment to the real p5js.org, those script links are now broken, which means most of the reference on p5js.org is broken right now. 😞

I feel conflicted about my solution to use P5_SITE_ROOT since it's so easy to forget to set it for production.

One possible solution is to actually make /lib/p5.js and the others not 404 on p5js.org, either through symlinks or by just moving those files... Any other ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions