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
Copy file name to clipboardExpand all lines: scaffolding-with-fano-cli/index.md
+30-2Lines changed: 30 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -224,7 +224,7 @@ With `[path]` empty, it will scan current directory for any JavaScript files and
224
224
$ fanocli --jsmin
225
225
```
226
226
227
-
With `[path]` not empty, if it is directory, it will scan that directory for any JavaScript files and minify them and output as new file with name using original file name appended with `min.js`. If `[path]` is single file, it minify it and create new file with same name appended with `min.js`.
227
+
With `[path]` not empty, if it is directory, it scans that directory for any JavaScript files and minifies them and output as new file with name using original file name appended with `min.js`. If `[path]` is single file, it minifies it and create new file with same name appended with `min.js`.
228
228
229
229
```
230
230
$ fanocli --jsmin=/path/to/js
@@ -236,12 +236,40 @@ If you specify optional `--output=[target-path]` parameter, then `[target-path]`
If `[target-path]` equals `stdout`, minify output is printed to STDOUT.
239
+
If `[target-path]` equals `stdout`, minified output is printed to STDOUT.
240
240
241
241
```
242
242
$ fanocli --jsmin=/path/to/js --output=stdout
243
243
```
244
244
245
+
## <aname="minify-css"></a> Minify CSS files
246
+
247
+
To reduce CSS file size, run with `--cssmin=[path]` command line options.
248
+
249
+
With `[path]` empty, it will scan current directory for any CSS files and minify them and output as new file with name using original file name appended with `min.css`.
250
+
251
+
```
252
+
$ fanocli --cssmin
253
+
```
254
+
255
+
With `[path]` not empty, if it is directory, it scans that directory for any CSS files and minifies them and output as new file with name using original file name appended with `min.css`. If `[path]` is single file, it minifies it and create new file with same name appended with `min.css`.
256
+
257
+
```
258
+
$ fanocli --cssmin=/path/to/css
259
+
```
260
+
261
+
If you specify optional `--output=[target-path]` parameter, then `[target-path]` will be used as its filename.
If `[target-path]` equals `stdout`, minified output is printed to STDOUT.
268
+
269
+
```
270
+
$ fanocli --cssmin=/path/to/css --output=stdout
271
+
```
272
+
245
273
## <aname="add-session-support"></a>Add session support
246
274
247
275
Any [project creation commands](/scaffolding-with-fano-cli/creating-project), i.e, `--project*` commands, accept additional parameter `--with-session=[session storage]` where `session storage` value can be one of following value
0 commit comments