-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
45 lines (36 loc) · 1.27 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# What is
This is my boilerplate that I use in my regular workflow for a webpack dev server for a automatic and real-time compiling
# Project structure
```
.
├── config
│ ├── webpack.common
│ ├── webpack.dev
│ └── webpack.prod
├── src
│ ├── assets
│ | ├── fonts
│ | └── images
│ ├── js
│ ├── pug
│ | ├── base
│ | ├── partials
│ | └── pages
│ ├── styles
│ | ├── base
│ | ├── components
│ | ├── layouts
│ | ├── pages
│ | └── styles
├── README.md
└── package.json
```
All files are in the src folder, it includes assest, css, images, js, sass and pug folders.
- assets : some static files, e.g. fonts, svg ...etc.
- js : entry point index.js is here, and you also can put other customize js files
- styles : put your sass files here, you can manage this folder structure for your own
- pug : pug template files, you can use a different layout for extends
The file in config folder are webpack 5.x config setting, to handle Pug + Sass into HTML files.
# Getting started
You can clone this repo or fork it.
If you fork it, when you create a new repo select this as starting template