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

build: Use rollup to create standalone file #393

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RiverTwilight
Copy link

I just create a single bundle file for browser usage , which make using with CDN or a single <script> tag possible.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>My App</title>
</head>
<body>
  <script src="bundle.js"></script>
  <script>
    const input = "https://rollupjs.org/introduction/";
    ArticleExtractor.extract(input)
      .then(result => console.log("Extracted result:", result))
      .catch(error => console.error("Error:", error));
  </script>
</body>
</html>

To re-create bundle simply run:

rollup -c

@ndaidong
Copy link
Collaborator

@RiverTwilight thank you for your pr. However I'm rebuilding this package using TypeScript and DNT. Please wait for the next release.

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.

2 participants