The codebase for my personal website.
- HTML, CSS, JavaScript
- Bootstrap
- PostCSS (with
autoprefixerandcssnano) - PurgeCSS
- Terser (JavaScript minifier)
- html-minifier-terser (HTML minifier)
- Clone the repository
git clone https://github.com/cdadityang/website- Navigate to the project directory
cd website- Open
src/index.htmlin your browser to view the development version
- Build the optimized production version
npm run build- Open the
dist/index.htmlin your browser to view production version.
The build process includes:
- Clean: Removes the existing
dist/folder and creates fresh output directories (styles, scripts, images, fonts) - CSS Processing: PostCSS pipeline that purges unused CSS rules with PurgeCSS, adds vendor prefixes with autoprefixer for cross-browser compatibility, and minifies CSS with cssnano for optimal file size
- JS Minification: Terser compresses JavaScript by removing whitespace, shortening variable names (mangling), and eliminating dead code while preserving functionality
- HTML Minification: html-minifier-terser removes unnecessary whitespace, comments, and optional HTML tags while also minifying any inline CSS and JavaScript for maximum compression
- Asset Copying: Copies static assets (images and fonts) from
src/todist/folder maintaining the same directory structure for production deployment
If you would like to contribute, please check this contributing guide
Please check this Code of Conduct guide before contributing or having any kind of discussion(issues, pull requests etc.)
