Fastest build environment for production.
typescript
, esbuild
, eslint
npm install
oryarn install
- create a
/dist
folder and addindex.html
file:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TESTing env for production</title>
</head>
<body>
<h1>TESTing env for production</h1>
<div id="app"></div>
<script src="index.js"></script>
</body>
</html>
- install http-server:
npm i -D http-server
or- using live server vscode extension.
yarn run build
- go into ./dist and start serving using your favorite http server.
- open your browser at http://127.0.0.1:5500/dist/index.html