How can I bundle third party js to dist dir?
See original GitHub issuePlease provide us with the following information:
- OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Mac OSX
- 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 - 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
- The log given by the failure. Normally this include a stack trace and some more information.
- 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:
- Created 7 years ago
- Comments:8 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.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.