Skip to content

document using functions for replacement values #399

@stephane-vanraes

Description

@stephane-vanraes
  • Rollup Plugin Name: replace
  • Rollup Plugin Version: 2.3.2

Documentation Is:

  • Missing
  • Needed
  • Confusing
  • Not Sure?

Please Explain in Detail...

It is possible to use a function as replacement function:

replace({
  BUILD_TIME: () => new Date()
})

This is not mentioned in the documentation but would make this plugin very good

Your Proposal for Changes

Add to documentation with example

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