Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Add support for output file customisation #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

steinybot
Copy link

This allows the following:

    new ProtobufPlugin({
      input: '../proto/src/main/protobuf/shared/**/*.proto',
      output: (file) => {
        const relative = path.relative('../proto/src/main/protobuf', file)
        const parsed = path.parse(relative)
        return path.join('protobuf', parsed.dir, parsed.name + '.js')
      },
      outputType: 1
    )}

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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.

1 participant