Skip to content

Strip Facebook flow types #28

Description

@gonaumov

Hello.

I want to use the plugin to strip Facebook Flow types. I managed to do this for .jsx files. Can you give me example how to do this for .js files also? I see

includeFilter := "*.jsx"

on 67 line of SbtReactJs.scala.

I inspect includeFilter and see the following:

 web-assets:reactjs::includeFilter

but how to set it from build.sbt ?

Best regards

Edit:

I managed to do this and will put the code here but this not solve the problem.
I will fork the plugin and will change apropriate jsx.js.

includeFilter in reactJs in Assets := new SimpleFilter(file => {
    file.toString().endsWith(".jsx") || file.toString().endsWith(".js")
})

into build.sbt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions