Title: Production Build Vendor Files Missing · Issue #785 · angular/angular-cli · GitHub
Open Graph Title: Production Build Vendor Files Missing · Issue #785 · angular/angular-cli
X Title: Production Build Vendor Files Missing · Issue #785 · angular/angular-cli
Description: I've added d3.js to my project and mapped it according to the documentation. Everything works fine with the dev builds, but when I try to build for production 'ng build -prod' , the d3 files are not copied to the /dist folder. Here's my ...
Open Graph Description: I've added d3.js to my project and mapped it according to the documentation. Everything works fine with the dev builds, but when I try to build for production 'ng build -prod' , the d3 files are no...
X Description: I've added d3.js to my project and mapped it according to the documentation. Everything works fine with the dev builds, but when I try to build for production 'ng build -prod' , the d3 ...
Opengraph URL: https://github.com/angular/angular-cli/issues/785
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Production Build Vendor Files Missing","articleBody":"I've added d3.js to my project and mapped it according to the documentation. Everything works fine with the dev builds, but when I try to build for production 'ng build -prod' , the d3 files are not copied to the /dist folder. Here's my system-config.ts and angular-cli-build.js.\n\n```\n/***********************************************************************************************\n * User Configuration.\n **********************************************************************************************/\n/** Map relative paths to URLs. */\nconst map: any = {\n 'd3': 'vendor/d3/d3.js'\n};\n\n/** User packages configuration. */\nconst packages: any = {\n};\n```\n\n```\nvar Angular2App = require('angular-cli/lib/broccoli/angular2-app');\n\nmodule.exports = function(defaults) {\n return new Angular2App(defaults, {\n vendorNpmFiles: [\n 'systemjs/dist/system-polyfills.js',\n 'systemjs/dist/system.src.js',\n 'zone.js/dist/*.js',\n 'es6-shim/es6-shim.js',\n 'reflect-metadata/*.js',\n 'rxjs/**/*.js',\n '@angular/**/*.js',\n 'd3/d3.js'\n ]\n });\n};\n```\n\nMy app is unable to run in production mode because of this. Any idea?\n","author":{"url":"https://github.com/mb-jenks","@type":"Person","name":"mb-jenks"},"datePublished":"2016-05-16T15:18:20Z","url":"https://github.com/angular/angular-cli/issues/785"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3ccf5fb1-ef02-c8d7-02d0-591b59fb481b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3DA:45DDE:14D80FB:1CA2147:6B05777B |
| html-safe-nonce | d4710df2683a1973c41d9ade4aa42e905178d01e31901ca700539568b58ef2b8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0RBOjQ1RERFOjE0RDgwRkI6MUNBMjE0Nzo2QjA1Nzc3QiIsInZpc2l0b3JfaWQiOiIyNDU0NDAwNDcyNTM3Mjc5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 03e5e1d462abab584ea6697abd5a270e2662b02e0f9923edaa4708685f8b7169 |
| hovercard-subject-tag | issue:155051905 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/785/issue_layout |
| twitter:image | https://opengraph.githubassets.com/27eb3bf9d5b9f447690d81144d64af1bbfdd98d40e258b585e2bfca2f392b85d/angular/angular-cli/issues/785 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/27eb3bf9d5b9f447690d81144d64af1bbfdd98d40e258b585e2bfca2f392b85d/angular/angular-cli/issues/785 |
| og:image:alt | I've added d3.js to my project and mapped it according to the documentation. Everything works fine with the dev builds, but when I try to build for production 'ng build -prod' , the d3 files are no... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mb-jenks |
| hostname | github.com |
| expected-hostname | github.com |
| None | 507b2d62524c0f595c35a2a2ee8a6ec54b119f245b3c59eaa070013b70ed1ada |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e7a883ae3b439b8952652eaa7803e2587f30e339 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width