Skip to content

Would be possible to watch only one function? #69

Description

@mastazi

Currently I have npm run watch set to run webpack-cli -w and my webpack.config.js is the same as the one shown at the beginning of the README here on Github.

Currently in our SAM project my dev machine takes more than a minute to build. So I was wondering if there was a way to create a command where I can run npm run watch myFunction and it will only watch that single function? Usually when doing dev work I'm often only working on one single function at a time so this would be super helpful.

I suspect that there is a way but my knowledge of Webpack & of the aws-sam-webpack-plugin is not great. Any ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions