Jonathan Moore

Results 16 comments of Jonathan Moore

I think adding support for non-inlined scripts could help harden PWAs as well via CSP. Here is the React equivalent: https://medium.com/@nrshahri/csp-cra-324dd83fe5ff

I was thinking in nushell; perhaps the ansi command could be used to figure out the terminal width or such

A simple solution would be to put `alias su = sudo nu` in your config.nu

> Thanks. That didn't work, but this slight modification does: > > ```nu > def sudo [...rest] { gsudo nu -c $"'($rest | str collect ' ')'" } > ```...

One issue I ran into here is that we can't currently `export` the `let theme = {...}`. Perhaps we could use `source` rather than `use` in the config.nu?

Also, I'm not sure which would be better stylistically: a) Putting all the `source`s / `import`s at the top of `config.nu` b) Calling `import` / `source` right before they're used

So I ran into a bit of an issue. First, I tried doing `source completions/git.nu`, but this didn't work: ``` Error: nu::parser::file_not_found (https://docs.rs/nu-parser/0.59.1/nu-parser/enum.ParseError.html#variant.FileNotFound) × File not found ╭─[C:\Users\jon\AppData\Roaming\nushell\config.nu:54:1] 54 │...

or perhaps `get`

~~Closing, as it seems it may be possible to get around the create-react-app issue with [CRACO](https://github.com/gsoft-inc/craco).~~

Reopening, I didn't realize how much smaller the preact bundle size was.