Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip Facebook flow types #28

Open
gonaumov opened this issue Jun 14, 2016 · 0 comments
Open

Strip Facebook flow types #28

gonaumov opened this issue Jun 14, 2016 · 0 comments

Comments

@gonaumov
Copy link

gonaumov commented Jun 14, 2016

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.

@gonaumov gonaumov changed the title ReactJsKeys.stripTypes dont do anything. Strip Facebook flow types Jun 14, 2016
@gonaumov gonaumov reopened this Jun 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant