A template for static single page, based on parcel.js, typescript and sass.
clone git@github.com:HuijiFE/template-parcel-ts.git my-project
cd my-project
yarnNOTE: It is recommend that
yarnbe used for installing dependencies.
yarn serveConfigure 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:assetsThe files will be output to the directory "dist" in the project.