Nicklas Gummesson

Results 15 comments of Nicklas Gummesson

+1, was about to ask the same question! I'll add a sub-question to original poster above (hope you don't mind); I'm interested in resources that you find particular good for...

Was looking for the same thing. My quick-n-dirty workaround was to put a small bash script ("git-fuzzy-find") that utilizes [fzf](https://github.com/junegunn/fzf), like so: ``` #!/bin/bash FILTERS=${@:1} git ls-files | fzf -f...

Looking into the code, the problem is that the banner [is added _after_ the bundle is created (and thus the source-map)](https://github.com/jmreidy/grunt-browserify/blob/3565b89c3d9964e52b8c3c8a035276f3d6a2f174/lib/runner.js#L156-L169) which explains why the source code appears to be...

Having a quick look, a better solution would probably be to change the [browerify bundle pipeline](https://github.com/substack/node-browserify#bpipeline) (could probably be done in the [prebundlecb](https://github.com/jmreidy/grunt-browserify/tree/3565b89c3d9964e52b8c3c8a035276f3d6a2f174#prebundlecb) option) and inject a "banner" handler before...

To whoever who encounters this issue here is a workaround until I get time to implement a PR, or if someone beats me to it :pray: Provide a custom `prelude`...

Ah, that explains it, thx for the prompt answer!

For what it's worth, doing something similar to what's suggested in https://github.com/jsdom/jsdom/issues/135#issuecomment-68191941 works, e.g.: ``` Object.defineProperty(window.HTMLElement.prototype, 'offsetHeight', { configurable: true, get: () => 123, // i.e. return a fixed height...

An example use-case that came up was for testing some **nginx** changes for our frontend app. Built using ` okteto build -t eu.gcr.io/development-300207/frontend:nicklas frontend` but turns out it didn't work...

FWIW, I also tried using https://docs.docker.com/desktop/mac/apple-silicon/ which hints that it does support `--platform=linux/amd64`. Tried using that flag that in my Dockerfile, like so: ```Docker FROM --platform=linux/amd64 node:16 as builder #...

Follow-up, with help and some more explanations from @ifbyol we found a workaround for time being! TL:DR it _is_ possible to build with custom platform, but have to do a...