A template for static single page, based on parcel.js, typescript and sass.
clone [email protected]:HuijiFE/template-parcel-ts.git my-project
cd my-project
yarn
NOTE: It is recommend that
yarn
be used for installing dependencies.
yarn serve
Configure the port and public url: edit the package.json and replace the port number in the script "start".
- Build the index.html, it's including the script and style files
yarn build
- Only build the script file index.ts
yarn build:script
- Only build the stylesheet file index.scss
yarn build:style
- Build script and style sheet together
yarn build:assets
The files will be output to the directory "dist" in the project.