id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
freeCodeCamp/34779_36_0.txt | # [RFC] Import query params #3477
padmaia opened this issue Aug 29, 2019 · 26 comments · Fixed by #4881 | |
freeCodeCamp/34779_168_0.txt | ###
jamiebuilds commented Sep 24, 2019 | |
freeCodeCamp/23291_36_0.txt | # How can append query string to chunk files request when I use
require.ensure ? #2329
mc-zone opened this issue Apr 13, 2016 · 8 comments | |
freeCodeCamp/freeCodeCamp_3_1.txt | nseguimos verificar seu troféu na plataforma de aprendizagem da
Microsoft ](https://forum.freecodecamp.org/t/nao-conseguimos-verificar-seu-
trofeu-na-plataforma-de-aprendizagem-da-microsoft/639364/2)
[ Link verification certificate not working
](https://forum.freecodecamp.org/t/link-verification-certificate-not-
worki... | |
freeCodeCamp/34779_174_0.txt | rtsao mentioned this issue Sep 25, 2019
[RFC] Parcel 2: On-disk transformers #3559 | |
freeCodeCamp/34779_157_0.txt | > ` img.png?width=100&height=100 ` doesn't affect resolution, but
> transformation. In this case it just doesn't change the type of asset being
> returned.
If you fetch that URL it does resolve to an asset, the server might be
behind the scenes “transforming” that, but from the client you are only aware
of resolutio... | |
freeCodeCamp/34779_45_0.txt | The only change we would need to make in Parcel would be to slice off the
query params from the module specifiers to resolve the file and then tack them
back on to resolve the transformation pipeline. Perhaps it would be nice to
have a special glob matcher that makes it easier to write globs of this type.
Query params ... | |
freeCodeCamp/34779_181_0.txt | Closed
Copy link | |
freeCodeCamp/23291_24_0.txt | ## Use saved searches to filter your results more quickly
Name | |
freeCodeCamp/34779_116_0.txt | WIP: Add Markdown Plugin #3384
Closed | |
freeCodeCamp/34779_94_0.txt | * 👍 1 reaction
Sorry, something went wrong. | |
freeCodeCamp/34779_199_0.txt | Image transformer #4209
Closed | |
freeCodeCamp/freeCodeCamp_2_2.txt | ["DIME", 0.1],
["NICKEL", 0.05],
["PENNY", 0.01],
];
let change = [];
const maxChangeCopy = { ...maxChangePerDenomination };
// updated for loop to look at available bills before calculating the ideal amount
for (let i = 0; i < denominations.leng... | |
freeCodeCamp/34779_53_0.txt | Member
### | |
freeCodeCamp/34779_26_0.txt | Cancel Create saved search
Sign in | |
freeCodeCamp/34779_176_0.txt | Inline CSS in JavaScript #2864
Closed | |
freeCodeCamp/34779_98_0.txt | > Right now I'm leaning more towards the additional extension:
Yeah, that could work. Would it be chainable? Say I had two transforms: | |
freeCodeCamp/freeCodeCamp_4_4.txt | e ](https://www.discourse.org) , best viewed with
JavaScript enabled
| |
freeCodeCamp/34779_33_0.txt | Already on GitHub? Sign in to your account
Jump to bottom | |
freeCodeCamp/23291_15_0.txt | * Open Source
* GitHub Sponsors | |
freeCodeCamp/34779_115_0.txt | Sorry, something went wrong.
mischnic mentioned this issue Sep 22, 2019 | |
freeCodeCamp/34779_164_0.txt | Copy link
Member | |
freeCodeCamp/34779_133_0.txt | > I think we should try to keep this as simple as possible and not try to make
> Parcel even more complicated to support this one feature. Query params can
> be widely used for many purposes, including changing output type or passing
> other options (e.g. image resizing). Supporting them is simple, and opens up
> the d... | |
freeCodeCamp/34779_110_0.txt | Member
### | |
freeCodeCamp/34779_145_0.txt | Sorry, something went wrong.
Copy link | |
freeCodeCamp/23291_29_0.txt | * * Notifications
* Fork 8.7k
* Star 64.2k
* Code
* Issues 144
* Pull requests 131
* Discussions
* Actions
* Projects 7
* Security
* Insights | |
freeCodeCamp/34779_82_0.txt | All reactions
* 👍 5 reactions | |
freeCodeCamp/23291_31_0.txt | 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. | |
freeCodeCamp/34779_60_0.txt | I think we should only support query params for specifiers that are URLs, so
for JS, only ESM. CSS and HTML are all URLs, but langs like SASS and LESS may
not be. Some research required. CJS shouldn't be supported - ` ? ` is a valid
character in a filename.
> Should this be supported in node_modules | |
freeCodeCamp/23291_4_0.txt | Host and manage packages
* Security | |
freeCodeCamp/34779_96_0.txt | jakearchibald commented Sep 5, 2019
@devongovett | |
freeCodeCamp/34779_189_0.txt | Named pipelines are implemented in import specifiers now. Query params for
options are not yet implemented.
---
All reactions
Sorry, something went wrong. | |
freeCodeCamp/23291_56_0.txt | edited
Thanks! @sokra
But what are the advantages of use hash in filename compare with query string?
Well hope to hear your opinion. I think that generate many version files on
the basis of filename maybe make maintenance more difficult. And if we deleted
wrong file, a certain version of application with users cac... | |
freeCodeCamp/freeCodeCamp_2_0.txt | [ The freeCodeCamp Forum ](/)
# [ Build a Cash Register project, 1 test to pass! ](/t/build-a-cash-
register-project-1-test-to-pass/685159)
[ JavaScript ](/c/javascript/421)
[ eusebieDev ](https://forum.freecodecamp.org/u/eusebieDev) April 13, 2024,
12:11am 1
Hi, after… um, quite a fun time trying to get my fin... | |
freeCodeCamp/34779_92_0.txt | This has the benefit of reusing existing configuration:
{
"*.{txt,text}": ["@parcel/transformer-raw"]
} | |
freeCodeCamp/34779_123_0.txt | Copy link
Member | |
freeCodeCamp/freeCodeCamp_0_1.txt | porting into:
[ 
Capture1 778×610 18.3 KB ](https://global.discourse-
cdn.com/freecodecamp/original/3X/8/d/8d529eb0c3a464ec941a60b39eba59d7dd2c75ed.png
"Capture1")
you see what i mean , because ... | |
freeCodeCamp/freeCodeCamp_2_1.txt | ded < price) {
alert("Customer does not have enough money to purchase the item");
return;
}
if (changeDue === 0) {
document.getElementById("change-due").innerText =
"No change due - customer paid with exact cash";
return;
}
if (totalCID < changeDue) {
... | |
freeCodeCamp/23291_7_0.txt | Write better code with AI
* Code review | |
freeCodeCamp/23291_3_0.txt | Automate any workflow
* Packages | |
freeCodeCamp/34779_43_0.txt | The ECMAScript modules standard (ESM for short) is now supported across all
modern browsers and will soon be supported by Node.js as well. One neat thing
about ESM is that it essentially treats all module specifiers as URLs, which
means adding query parameters is perfectly valid syntax and not something
bespoke to a sp... | |
freeCodeCamp/34779_205_0.txt | ✨ Parcel 2 💬 RFC Request For Comments
Projects | |
freeCodeCamp/34779_106_0.txt |
{
"transforms": {
"*.png": ["@parcel/transform-png"],
"*.img-data": ["@parcel/transform-img-data"],
},
"optimizers": {
"*.png": ["@parcel/optimizer-pngmin"]
}
}
There’s a lot of questions about which plugins run and when they run: | |
freeCodeCamp/34779_70_0.txt | The ` ... ` would cause the next matching pipeline ( ` *.png ` ) to run first,
and then continue with url or base64. But that's kinda confusing vs the first.
Any ideas on how we could make this work?
---
👍 1 mathieutu reacted with thumbs up emoji
All reactions | |
freeCodeCamp/34779_171_0.txt | ###
kwelch commented Sep 24, 2019 | |
freeCodeCamp/23291_59_0.txt | ###
sokra commented Apr 15, 2016 | |
freeCodeCamp/23291_71_0.txt | aprilmintacpineda commented Dec 9, 2019
what about if I want to achieve this to append a pre-computed value on the
query string? like so ` file.js?computedValue=somevalue `
---
👍 3 NiestrojMateusz, sushruth, and BodukGenius reacted with thumbs up emoji | |
freeCodeCamp/34779_167_0.txt | Copy link
Member | |
freeCodeCamp/23291_84_0.txt | 6 participants
## Footer | |
freeCodeCamp/freeCodeCamp_1_1.txt | appreciated.
3 Likes
[ Papayaman1000 ](https://forum.freecodecamp.org/u/Papayaman1000) January 8,
2017, 6:30pm 11
Ah, so here’s a tribute page. It seems to work well on all platforms, though
the SVG line separator causes some problems on small phones in portrait. I’ll
probably drop it off at CodeReview.SE too, sin... | |
freeCodeCamp/34779_97_0.txt | > As for the specific suggestions, protocols seem like an interesting idea,
> but feel a bit like a "source" rather than a transform. e.g. normal
> protocols like ` http: ` , ` file: ` , and even ` std: ` modules are all
> sources - you cannot request the same file from different protocols
> generally.
The only except... | |
freeCodeCamp/34779_182_0.txt | Member
### | |
freeCodeCamp/34779_32_0.txt | Sign up for GitHub
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement . We’ll occasionally send you account related emails. | |
freeCodeCamp/23291_51_0.txt | Copy link
Member | |
freeCodeCamp/23291_42_0.txt |
output: {
//...
chunkFilename: outputDir + "/[id].[name]-[chunkhash].js"
},
But it has ouccr too many files over and over again. and I often need to
delete old files both local and server(also maybe it is unsafe): | |
freeCodeCamp/34779_186_0.txt | Parcel 2: multi entry/target builds #3302
Closed | |
freeCodeCamp/34779_183_0.txt | devongovett commented Oct 10, 2019
FYI I implemented "named pipelines" in #3613 using a protocol-like syntax.
It's not implemented in import specifiers yet, only in ` .parcelrc ` . For
now, it's used to run a different pipeline based on the target (e.g. ` main `
, ` module ` , ` types ` ).
---
👍 1 jakear... | |
freeCodeCamp/23291_0_0.txt | Skip to content
## Navigation Menu | |
freeCodeCamp/34779_65_0.txt | I think in order to make the config easiest to use, we shouldn't require
escaping the query params. We can build a custom matcher, that strips off the
query param first and matches the glob on the left side, and then checks the
query params separately if it matches.
---
All reactions
Sorry, something went wrong... | |
freeCodeCamp/34779_39_0.txt | Contributor
### | |
freeCodeCamp/34779_76_0.txt | ###
jakearchibald commented Sep 2, 2019 | |
freeCodeCamp/34779_34_0.txt | # [RFC] Import query params #3477
Closed | |
freeCodeCamp/23291_72_0.txt | All reactions
* 👍 3 reactions | |
freeCodeCamp/34779_30_0.txt | Additional navigation options
* Code
* Issues
* Pull requests
* Discussions
* Actions
* Projects
* Security
* Insights | |
freeCodeCamp/23291_26_0.txt | Cancel Create saved search
Sign in | |
freeCodeCamp/34779_193_0.txt | I think it will be good to use a single syntax for the whole JS ecosystem so I
suggest combining different solutions into one - tc39/proposal-import-
attributes#22
---
👍 7 mischnic, Janpot, Banou26, kevincox, SimonSiefke, AlicanC, and omrilotan
reacted with thumbs up emoji
All reactions | |
freeCodeCamp/34779_119_0.txt | Just a random thought. Personally , I dislike having to change my import
statements because of a bundler. Even the query parameter is annoying, because
it feels like I'm mixing the concern of loading modules with the concern of
bundling code . They're related, but should be more explicitly separate,
imho. Combine... | |
freeCodeCamp/23291_69_0.txt | so just use contenthash - and there is no such problem anymore.
---
All reactions
Sorry, something went wrong. | |
freeCodeCamp/23291_54_0.txt | Copy link
Member Author | |
freeCodeCamp/34779_200_0.txt | 3 tasks
DeMoorJasper mentioned this issue Jul 12, 2020 | |
freeCodeCamp/34779_136_0.txt | Sorry, something went wrong.
Copy link | |
freeCodeCamp/34779_166_0.txt | FWIW, there was a discussion in create-react-app a while back about this:
facebook/create-react-app#3722 . @gaearon made a proposal to use named
imports for this. Not sure where it ended up, but appears that query params
were also proposed as an option in the thread. Would be useful to get some buy
in from other too... | |
freeCodeCamp/23291_77_0.txt |
declare var __webpack_get_script_filename__: any;
const oldFn = __webpack_get_script_filename__;
__webpack_get_script_filename__ = (chunkId) => {
const filename = oldFn(chunkId);
return filename + `?v=${environment.timestamp}`;
};
go enjoy, do you love me ?
---
Al... | |
freeCodeCamp/34779_170_0.txt | Copy link
Contributor | |
freeCodeCamp/23291_13_0.txt | By Solution
* CI/CD & Automation
* DevOps
* DevSecOps | |
freeCodeCamp/34779_44_0.txt | So what would it take for Parcel to support this? The most straightforward
approach requires no changes to Parcel's configuration so it's got that going
for it. All you would have to do to force a file to be transformed by a
different pipeline is add a query param to the module specifier and configure
a pipeline in you... | |
freeCodeCamp/34779_51_0.txt | All reactions
* 👍 5 reactions
* 🎉 6 reactions
* 🚀 5 reactions | |
freeCodeCamp/34779_142_0.txt | > I don't think it's changing the meaning at all. as wouldn't be a special
> parameter in Parcel core, just what a plugin has implemented.
But that is changing the meaning. Query parameters, and module specifiers in
general only affect the way a module is resolved. There is currently no
standard for transformations ... | |
freeCodeCamp/34779_18_0.txt | * Topics
* Trending
* Collections
* Pricing | |
freeCodeCamp/23291_16_0.txt | Fund open source developers
* The ReadME Project | |
freeCodeCamp/34779_31_0.txt | 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. | |
freeCodeCamp/34779_104_0.txt |
{
"transforms": {...},
"optimizers": {
"*.png": ["@parcel/optimizer-pngmin"]
}
}
However for the generic case of chaining I’m a little bit torn. There is some
precedence for this in build systems as well, Ruby on Rails’ asset pipeline
uses extensions to turn on different fi... | |
freeCodeCamp/34779_187_0.txt | Copy link
Member | |
freeCodeCamp/23291_35_0.txt | mc-zone opened this issue Apr 13, 2016 · 8 comments
Closed | |
freeCodeCamp/34779_153_0.txt | @jamiebuilds
> Query parameters, and module specifiers in general only affect the way a
> module is resolved. | |
freeCodeCamp/23291_40_0.txt | mc-zone commented Apr 13, 2016
I have use ` require.ensure ` to generator async chunk files like: | |
freeCodeCamp/34779_127_0.txt | * 👍 2 reactions
Sorry, something went wrong. | |
freeCodeCamp/23291_32_0.txt | Sign up for GitHub
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement . We’ll occasionally send you account related emails. | |
freeCodeCamp/34779_52_0.txt | mischnic added 💬 RFC Request For Comments ✨ Parcel 2 labels Aug 30, 2019
Copy link | |
freeCodeCamp/34779_2_0.txt | * Product
* Actions | |
freeCodeCamp/34779_139_0.txt | I don't think it's changing the meaning at all. ` as ` wouldn't be a special
parameter in Parcel core, just what a plugin has implemented. Nothing is
stopping transformers from implementing query parameters that return different
types of assets depending on the value. For example, the raw transformer could
implement su... | |
freeCodeCamp/34779_109_0.txt | Sorry, something went wrong.
Copy link | |
freeCodeCamp/34779_195_0.txt | mischnic mentioned this issue Jan 17, 2020
Explicit query param imports for non-JS/CSS assets #2306 | |
freeCodeCamp/34779_63_0.txt | Copy link
Member | |
freeCodeCamp/23291_66_0.txt | 增加生成资源hash配置,hash允许配置在url参数上面,而不是文件hash,减少冗余文件 vuejs/vue-cli#2413
Closed | |
freeCodeCamp/34779_208_0.txt | Successfully merging a pull request may close this issue.
[T-6] Image transformer parcel-bundler/parcel | |
freeCodeCamp/34779_101_0.txt | Copy link
Member | |
freeCodeCamp/freeCodeCamp_4_2.txt | -trophy-
error/633618/68)
[ [COLLATION]: Microsoft C# Username/Trophy Error
](https://forum.freecodecamp.org/t/collation-microsoft-c-username-trophy-
error/633618/29)
[ Write Your First Code Using C# - Trophy - Write Your First Code Using C#
](https://forum.freecodecamp.org/t/write-your-first-code-using-c-trophy-writ... | |
freeCodeCamp/23291_58_0.txt | Copy link
Member | |
freeCodeCamp/34779_41_0.txt | Currently in Parcel v2, dependencies are resolved to files and the resulting
file paths are matched against the configured globs in the ` .parcelrc ` file
to see which pipeline the file should be transformed by. This works for most
cases, but sometimes you might want to force a dependency down a specific
pipeline. For ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.