-
React and Typescript
-
Using
webpackfor the build -
Responsive web app
Have webpack installed globally to use webpack
npm install -g webpack webpack-cli
npm installnpm run dev
Open index.html file located in ./src
start ./src/index.htmloropen ./src/index.html, depending on the OS
Note: Dependencies in /dist and /src index.html files have different source links.
npm installnpm 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