Title: frustrated with the global variable like $!!! · Issue #5139 · angular/angular-cli · GitHub
Open Graph Title: frustrated with the global variable like $!!! · Issue #5139 · angular/angular-cli
X Title: frustrated with the global variable like $!!! · Issue #5139 · angular/angular-cli
Description: fist of all ,thanks for your effort to the great tool and then there is an question frustrating me for a long time; here it is : global variable for this cli-tool; for example: if we want to use $ variable as in global way, the suggestio...
Open Graph Description: fist of all ,thanks for your effort to the great tool and then there is an question frustrating me for a long time; here it is : global variable for this cli-tool; for example: if we want to use $ ...
X Description: fist of all ,thanks for your effort to the great tool and then there is an question frustrating me for a long time; here it is : global variable for this cli-tool; for example: if we want to use $ ...
Opengraph URL: https://github.com/angular/angular-cli/issues/5139
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"frustrated with the global variable like $!!!","articleBody":"fist of all ,thanks for your effort to the great tool\r\n\r\nand then there is an question frustrating me for a long time;\r\nhere it is :\r\nglobal variable for this cli-tool;\r\nfor example:\r\nif we want to use $ variable as in global way, the suggestion way of our cli\r\nis editing the \"script:[]\" in the file \".angular-cli.json\";\r\nin this senario:\r\nwe can get a script.bundel.js when server running;\r\nbut the the '$' is limtted in the script.bundel.js,not be shared,it's a 'fake global';\r\nthat's say if we use other libary based on jquery '$' not included in the 'script:[]',the '$'\r\ncan't be accessed!we have to do some work like ' import * as $ from jquery' \r\nbut in this way,we will get an error like '$ is not defined';\r\n\r\nso,we have to leave the 'script:[]' empty.and then verything is go well,but the $ is not global;\r\nthat's to say:either we include all the libary in the 'script:[...]' or left it empty;\r\nthey can never coexist;\r\nto say the least,even ,we can included all the libary files in the 'script:[]'\r\nthe script.bundel.js file may very large size ,that's not good idea;\r\n\r\nIMHO,I know we create this cli too not for expert,just for out of the box using;\r\nso maybe we don't encurage to do more complex job on config webpack. i really\r\nagree with this!\r\n\r\nIn sum,we just want to find a way to set 'real global' variable like config setting\r\nin webpack.config.js:\r\n\r\n```\r\nplugins:[new webpack.ProvidePlugin({\r\n\t\t jQuery: 'jquery',\r\n\t\t $: 'jquery',\r\n\t\t jquery: 'jquery'\r\n\t\t}) ];\r\n```\r\n\r\nso,how we go through this question?\r\n\r\nthank you again.\r\n\r\n","author":{"url":"https://github.com/guzuomuse","@type":"Person","name":"guzuomuse"},"datePublished":"2017-03-01T15:09:07Z","url":"https://github.com/angular/angular-cli/issues/5139"}
| 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:c72a5e4d-2f52-02d1-8202-01b5848ea8e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC24:291B58:3A16606:498942A:6B023366 |
| html-safe-nonce | d591d4054517adbce6877dfa8548c08c7d732147b36bf528a58338f3aadf12e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzI0OjI5MUI1ODozQTE2NjA2OjQ5ODk0MkE6NkIwMjMzNjYiLCJ2aXNpdG9yX2lkIjoiNTk1OTk3NTA5NDUxOTQ3NzA5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b15e6022a7e21c1e936922df58a7336cdd29a01750351dfc6ea2d69616c97920 |
| hovercard-subject-tag | issue:211108877 |
| 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/5139/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2636f668bf6bafc271dc38673cf940306a4b23ce8e57c9d1f2408c15f299a57b/angular/angular-cli/issues/5139 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2636f668bf6bafc271dc38673cf940306a4b23ce8e57c9d1f2408c15f299a57b/angular/angular-cli/issues/5139 |
| og:image:alt | fist of all ,thanks for your effort to the great tool and then there is an question frustrating me for a long time; here it is : global variable for this cli-tool; for example: if we want to use $ ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | guzuomuse |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width