Skip to content

Instantly share code, notes, and snippets.

@lauri-kaariainen
Created September 9, 2021 17:11
Show Gist options
  • Save lauri-kaariainen/39508367ce38053ef06b62b6889f5e11 to your computer and use it in GitHub Desktop.
Save lauri-kaariainen/39508367ce38053ef06b62b6889f5e11 to your computer and use it in GitHub Desktop.
deploying preact from codesandbox.io
{
"presets": [
"latest",
"stage-1"
],
"plugins": [
"transform-object-assign",
"transform-decorators-legacy",
[
"transform-react-jsx",
{
"pragma": "h"
}
],
[
"jsx-pragmatic",
{
"module": "preact",
"export": "h",
"import": "h"
}
]
]
}
2021:
git clone xxx
nano .babelrc and replace with accompanying file
#parcel needs to be installed, "parcelbuild" is alias for parcelbuild='parcel build --public-url "."'
npm install;
parcelbuild src/index.js;
cp index.html dist/;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment