HTML5 template with webpack, TypeScript, Less, PostCSS boilerplate. The build tool is included (CSS and JS optimization support).
- Less support
- PostCSS
- webpack
- TypeScript support
- JavaScript Support
- Fonts support
- Images support
- JS optimization
- CSS optimization
- Build tool
- src/less/styles.less - place your less code here,
- src/css/styles.css - auto-generated CSS by watch script (don't edit),
- src/js/script.js - auto-generated (don't edit),
- src/ts/script.ts - you can place your TypeScript here (optional),
- src/ts/index.ts - place your TypeScript here (recommended),
- src/fonts - place your fonts here,
- src/images - place your images here,
- src/index.html - place your HTML here,
- Node.js
- npm
npm install
npm run app
Build project into the dist
output directory.
npm run build
npm run less-compile
npm run tsc
npm run less-watch
Run index.html file (dist/index.html). You can use the Live server to run index.html.
Edit package.json file.
Change the entry point here.
"main": "src/js/script.js",
Edit webpack.config.js file.
Change the output directory here.
path: path.resolve(__dirname, "dist"),