question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I bundle third party js to dist dir?

See original GitHub issue

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Mac OSX
  1. Versions. Please run ng --version. If there’s nothing outputted, please run in a Terminal: node --version And paste the result here. angular-cli: 1.0.0-beta.5 node: 6.2.0 os: darwin x64
  2. Repro steps. Was this an app that wasn’t created using the CLI? What change did you do on your code? etc. ng build --prod
  3. The log given by the failure. Normally this include a stack trace and some more information.
  4. Mention any other details that might be useful.

How can I bundle third party js installed by npm to dist directory ?


Thanks! We’ll be in touch soon.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
filipesilvacommented, Jun 1, 2016

You can find a step-by-step tutorial of how to add 3rd party libraries here: https://github.com/angular/angular-cli/wiki/3rd-party-libs

When doing production builds via ng build -prod, used vendor libraries will automatically be bundled and minified.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Output Management - webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >
How to Bundle JavaScript With Rollup — Step-by-Step Tutorial
Learn how to use Rollup as a smaller, more efficient alternative to webpack and Browserify to bundle JavaScript files in this step-by-step tutorial...
Read more >
Should jQuery or other third-party library be bundled together ...
Therefore it's a good idea to distribute third-party libraries separately, ideally with much higher cache times.
Read more >
Client-side javascript: How to include third party frameworks?
I'm wondering how to embed these frameworks in my app. Short answer: Use aliases? If it can be automated, I don't see any...
Read more >
Handling 3rd-party JavaScript with Rollup - Mixmax
export default { input: 'main.js', output: { file: 'bundle.js', format: 'iife' } ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found