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

chore(webpack): set up basic example project to test plugin against #1207

Merged
merged 4 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/webpack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ module.exports = environment
2. Run the tests with `npm test`
3. Build/test on save with `npm run build:watch` and `npm run test:watch`

See the `/example` folder for a project to test against.

## License

This package is MIT licensed. See the [MIT-LICENSE](./MIT-LICENSE) file in this folder for details.
11 changes: 11 additions & 0 deletions packages/webpack/example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Webpack Source Map Plugin Example

Webpack project based [Webpack's example project](https://webpack.js.org/guides/getting-started/).

Note that currently this project is just used to test the upload of sourcemaps and deploy notifications -- the sourcemaps are not expected to be correctly applied to errors from this project since we didn't set up the revision and assetsUrl.

## Setup
Your API key should be in an environment variable `HONEYBADGER_API_KEY`. You can do this with [direnv](https://direnv.net/) or however you like.

## Testing
Run `npm run build` to run webpack. You should see a sourcemap and a deploy notification uploaded to Honeybadger.
10 changes: 10 additions & 0 deletions packages/webpack/example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Getting Started</title>
</head>
<body>
<script src="./dist/index.js"></script>
</body>
</html>
Loading