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

stripJS: remove bundles from snapshot #58

Merged
merged 2 commits into from
Aug 24, 2017
Merged

stripJS: remove bundles from snapshot #58

merged 2 commits into from
Aug 24, 2017

Conversation

geelen
Copy link
Owner

@geelen geelen commented Aug 24, 2017

To make snapshot work a lot more like a static-site generator. Usage (in package.json):

  "react-snapshot": {
    "stripJS": "^\\/static\\/js\\/main"
  }

Calls new RegExp on the string you pass in, so remember to escape things correctly. This is just a super simple first pass.

@geelen geelen merged commit 8926109 into master Aug 24, 2017
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

Successfully merging this pull request may close these issues.

1 participant