npm install
npm start
npm run build
npm run serve
Legacy Browsers
support via @vite/plugin-legacy with built-in babelSCSS
support via sassLinting
support via eslintFormatter
support via prettierAutoprefix
support via postcssImage Optimization
support via vite-plugin-image-optimizer
-
For multipage site you should manually provide pages path in
./src/pages/pages.config.js
-
Place all external connected JS files (e.g. jQuery libs and others) in
./public/tools
and provide them path in eachhtml
file (like this:<script src="tools/jquery-3.6.3.min.js"></script>
). -
Place all external connected css files (e.g. normalize.min.css and others) in
./src/assets/tools
and provide them path inindex.scss
file (like this:@import url('../assets/tools/normalize.min.css');
). -
Write the
PROJECT NAME
and eachPAGE TITLE
in the<head>
section ofhtml
files. They will be used in Google Analytics code below.
All image files (svg, png, jpg/jpeg, tiff, gif, webp, avif) gets compressed with lossless quality
via vite-plugin-image-optimizer.