This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import react from '@vitejs/plugin-react' | |
import type { RPCEPlugin } from 'rollup-plugin-chrome-extension' | |
import type { | |
HmrOptions, | |
PluginOption, | |
ViteDevServer, | |
} from 'vite' | |
export default function createPlugins( | |
...args: Parameters<typeof react> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
- In general, binaries built just for x86 architecture will automatically be run in x86 mode
- You can force apps in Rosetta 2 / x86 mode by right-clicking app, click Get Info, check "Open using Rosetta"
- You can force command-line apps by prefixing with
arch -x86_64
, for examplearch -x86_64 go
- Running a shell in this mode means you don't have to prefix commands:
arch -x86_64 zsh
thengo
or whatever - Don't just immediately install Homebrew as usual. It should most likely be installed in x86 mode.
Not all toolchains and libraries properly support M1 arm64 chips just yet. Although
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add color coding based on Rails environment for safety | |
if defined? Rails | |
banner = if Rails.env.production? | |
"\e[41;97;1m #{Rails.env} \e[0m " | |
else | |
"\e[42;97;1m #{Rails.env} \e[0m " | |
end | |
# Build a custom prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--violation-color: red; /* used for clear issues */ | |
--warning-color: orange; /* used for potential issues we should look into */ | |
} | |
/* IMAGES */ | |
/* | |
* Lazy-Loaded Images Check | |
* ==== |
- elder.js self closing shortcodes look like this:
{{foo bar="true"/}}
. Note the/
at the end is for Elder.js to parse both self closing and content wrapping shortcodes. - this clashes with other shortcode systems, eg. dev.to, which uses shortcodes that look like this:
{% youtube abc123 %}
- in elder.config.js you can customize the start and end shortcode:
{%foo bar="true"/%}
- however that
/
there is non negotiable. - this is why you need to customize the shortcode syntax
the strategy is, if you use remark
to process the text, to write a custom remark plugin to replace specifically this %}
ending code of the dev.to shortcode to what Elder.js expects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Debug Rollup", | |
"program": "${workspaceFolder}/node_modules/.bin/rollup", | |
"args": ["-c"], | |
"internalConsoleOptions": "openOnSessionStart" |
NewerOlder