Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Add support for patterns when specifying emitFiles #17

Merged
merged 1 commit into from
Dec 2, 2018

Conversation

ryan-codingintrigue
Copy link
Contributor

It would be very useful to be able to emitFiles based on pattern, similar to Rollup's own output.entryFileNames, etc.

This PR adds basic support for templating. For consistency, I've followed similar naming convention to Rollup's options:
[hash] - The existing hash of the file contents
[name] - The filename of the source file
[extname] - The extension of the source file
[dirname] - The directory of the file. Useful if using [name] and there are multiple files in different directories

The default value is "[hash][extname]", which will ensure backwards compatibility with previous versions.

@Ashot-KR Ashot-KR merged commit e9007c5 into rollup:master Dec 2, 2018
@Ashot-KR
Copy link

Ashot-KR commented Dec 2, 2018

v2.1.0 published on npm
thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants