Skip to content

Make node_modules a "special case" mount #14089

@bep

Description

@bep

See #14083 for the longer story

This is not allowed in a theme/module:

[[module.mounts]]
source = '../../node_modules/bootstrap'
target = 'assets/vendor/bootstrap'

I suggest that we for a mount outside of the main project and the source starts with node_modules/ (or ../../node_modules/ to also allow existing setups work without modification):

  • First check the local path.
  • If not found, check relative to the project.

This should:

/cc @jmooring

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions