-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfrs.dirs.js
26 lines (20 loc) · 841 Bytes
/
frs.dirs.js
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
//custom dir definitions
module.exports = function(dirs, mode) {
var path = require('path');
switch (mode) {
//invoked after setting src and dist main dir (set custom src/dist dir here; REMEMBER TO UPDATE SOURCE MAP SETTINGS)
case 'main':
//change src directory to source_dir
// dirs.src.main = dirs.app + 'source_dir/';
//change dist directory to "../public_html" (remember to normalize parent-related paths)
// dirs.dist.main = path.normalize(dirs.app + '../public_html/');
break;
//change particular src/dist subdirectories
case 'sub':
//change src images subdirectory from "img" to "images"
// dirs.src.images = dirs.src.main + 'images/';
//change dist JS subdirectory from "js" to "scripts"
// dirs.dist.js = dirs.dist.main + 'scripts/';
break;
}
}