-
React and Typescript
-
Using
webpack
for the build -
Responsive web app
Have webpack installed globally to use webpack
npm install -g webpack webpack-cli
npm install
npm run dev
Open index.html
file located in ./src
start ./src/index.html
oropen ./src/index.html
, depending on the OS
Note: Dependencies in /dist and /src index.html
files have different source links.
npm install
npm run devstart
npm run build
- Deploy and serve static files (e.g. using
pushstate-server
)
Note: Build only updates JS and CSS in the /dist folder (not html).
git subtree push --prefix dist origin gh-pages
Inspired by the intro to React tutorial: https://reactjs.org/tutorial/tutorial.html