Skip to content

This repo has a boilerplate example to start a react app without using create-react-app, but with snowpacl

License

Notifications You must be signed in to change notification settings

amravazzi/react-boilerplate-snowpack

Repository files navigation

React boilerplate

This repo has a boilerplate example to start a react app without using create-react-app. The stack is:

Getting started

Install the basic dependencies

npm install

Running the project

Snowpack builds the app as an ECMAScript Module, which is loaded in index.html as type=module:

<script type="module" src="/dist/index.js"></script>

So to see the app working, you should run it in an HTTP server, which is already provided by Snowpack. Just run

snowpack dev

and go to http://localhost:8080 and check it out! Everytime you change the code, the HMR will keep the browser up-to-date!

Building the app

To build the app for production just run

snowpack build

About

This repo has a boilerplate example to start a react app without using create-react-app, but with snowpacl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages