Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/danyalll1/vite-pug-boilerplate

It is boilerplate for static sites based on vite vituum and pug(jade),
https://github.com/danyalll1/vite-pug-boilerplate

pug sass vite vituum

Last synced: about 1 month ago
JSON representation

It is boilerplate for static sites based on vite vituum and pug(jade),

Awesome Lists containing this project

README

        

# Vite + Pug + Sass boilerplate

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run dev
```

### Compiles and minifies for production
```
npm run build
```

### Check compiled and minifies production version
```
npm run build
```

### Src and hrefs
All src and hrefs(like images, scripts and styles) in .pug files must begining from /src ...

### scripts and css
You can import all scripts in /src/scripts/app.js and call it in your layout.pug
layout.pug :
```
html(lang="ru")
head
link(rel="stylesheet" href="/src/styles/app.sass")
script(type='module' src="/src/scripts/app.js")
```
### svg and images

Your pug file:
```
#svg
header.header
.container
.header__container
.header__top
|copyright
.header__bottom
.header__logo
include ../../../assets/img/header/vite.svg <----svg

#image
section.top
.container
h1.section-title Vituum + Pug Template
.top__content
img(src="/src/assets/img/top/Vituum.png")
```