mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 23:28:02 +00:00
Add Create A Snowpack-Bundled React App as a react til
This commit is contained in:
24
react/create-a-snowpack-bundled-react-app.md
Normal file
24
react/create-a-snowpack-bundled-react-app.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Create A Snowpack-Bundled React App
|
||||
|
||||
> [Snowpack](https://www.snowpack.dev/) is a modern, lightweight toolchain for
|
||||
> web application development.
|
||||
|
||||
You can get started using snowpack with this `npx` command.
|
||||
|
||||
```bash
|
||||
npx create-snowpack-app my-app
|
||||
```
|
||||
|
||||
This command uses a base template that is pre-configured to use the snowpack
|
||||
defaults.
|
||||
|
||||
You can take this a step further by using a specialized template for React
|
||||
apps.
|
||||
|
||||
```bash
|
||||
npx create-snowpack-app react-client --template @snowpack/app-template-react
|
||||
```
|
||||
|
||||
An advantage this has over
|
||||
[create-react-app](https://github.com/facebook/create-react-app) is there is no
|
||||
ejecting needed to do something like pull in [PostCSS](https://postcss.org/).
|
||||
Reference in New Issue
Block a user