You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+56-34Lines changed: 56 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,17 @@ ___
7
7
8
8
# Features ⚡️
9
9
* Processing styles using [PostCSS](https://postcss.org/) with [postcss-preset-env](https://preset-env.cssdb.org/)
10
-
* Babel Transpiler for JavaScript (ES6)
11
-
* JavaScript Concatenating and Minification
12
-
* CSS Minification
13
-
* HTML Minification
14
-
* Image Compression
15
-
*Asset Copying
16
-
* Templating & Partial HTML Injection
17
-
* Cache-Busting
18
-
*Server for viewing built site
19
-
* Live-Reload for the dev environment
20
-
*Creates `app/` directory with built content and assets
10
+
* Babel transpiler for JavaScript (ES6)
11
+
* JavaScript concatenating and minification
12
+
* CSS minification
13
+
* HTML minification
14
+
* Image compression
15
+
*Assets copying
16
+
* Templating & partial HTML injection
17
+
* Cache-busting
18
+
*Local development server
19
+
* Live-reload for the development environment
20
+
*Distribution files: `build/`.
21
21
22
22
___
23
23
@@ -98,13 +98,14 @@ To avoid repetitive **HTML** code the build uses [gulp-file-include](https://git
98
98
99
99
## File Structure 🏗
100
100
101
-
├── app/ # Distribution files
101
+
├── build/ # Build files
102
+
├── dist/ # Distribution files
102
103
├── src/ # Source files
103
104
│ ├── assets/ # Assets directory
104
-
│ ├── img/ # Image directory
105
+
│ ├── css/ # CSS files
105
106
│ ├── fonts/ # Fonts directory
107
+
│ ├── img/ # Image directory
106
108
│ ├── js/ # JavaScript files
107
-
│ ├── styles/ # CSS files
108
109
│ ├── etc/ # Additional build files
109
110
│ ├── includes/ # Included partials
110
111
├── tools/ # Tools and utilities
@@ -127,17 +128,12 @@ $ npm run prod
127
128
```
128
129
The files will be generated in the `app/` directory. The production build automatically minifies the html and css. By default also the javascript files are concatenated in one bundle: `assets/js/bundle.js`.
129
130
130
-
# Image Optimization 🌅
131
-
For image optimization and SVG compression run:
132
-
```
133
-
$ npm run images
134
-
```
135
-
136
131
# Gulpfile.js
137
132
**Note:** The `Gulpfile.js` requires a build restart for any changes to take effect.
138
133
139
134
### PostCSS Plugins 🎨
140
-
Currently, [PostCSS](http://postcss.org/) has more than 200 plugins. You can find all of the plugins in the [plugins list] or in the [searchable catalog]. [CSSNext](http://cssnext.io/) is installed in the default configuration.
135
+
Currently, [PostCSS](http://postcss.org/) has more than 200 plugins. You can find all of the plugins in the [plugins list] or in the [searchable catalog]. [ostcss-preset-env
136
+
](https://preset-env.cssdb.org/) is installed in the default configuration.
0 commit comments