Created
September 9, 2021 17:11
-
-
Save lauri-kaariainen/39508367ce38053ef06b62b6889f5e11 to your computer and use it in GitHub Desktop.
deploying preact from codesandbox.io
This file contains 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
Show hidden characters
{ | |
"presets": [ | |
"latest", | |
"stage-1" | |
], | |
"plugins": [ | |
"transform-object-assign", | |
"transform-decorators-legacy", | |
[ | |
"transform-react-jsx", | |
{ | |
"pragma": "h" | |
} | |
], | |
[ | |
"jsx-pragmatic", | |
{ | |
"module": "preact", | |
"export": "h", | |
"import": "h" | |
} | |
] | |
] | |
} | |
This file contains 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
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