-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgulpfile-config.js
44 lines (38 loc) · 1.32 KB
/
gulpfile-config.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* Import Node.js modules */
var environments = require('gulp-environments'),
autoprefixer = require('autoprefixer');
var config = {
sourceDir: "./src/asset-files/",
buildDir: "./src/asset-files/",
styles: {
lessDir: "./src/asset-files/less",
lessFiles: ['./src/asset-files/less/styles.less'],
scssDir: "./src/asset-files/scss/",
scssFiles: "./src/asset-files/scss/**/*.scss",
destinationDir: "./src/asset-files/css",
mapsDir: "./maps", // relative to the destination directory
postcss: [
autoprefixer({browsers: ["last 5 versions", "> .5% in NG", "not ie < 11"]})
]
},
scripts: {
sourceDir: "./src/asset-files/js",
sourceFiles: ["./src/asset-files/js/**/*.js"],
destinationDir: "./src/asset-files/js"
},
images: {
sourceDir: "./src/asset-files/img",
sourceFiles: "./src/asset-files/img/**/*",
destinationDir: "./src/asset-files/img"
},
publicAssets: {
sourceDir: "",
sourceFiles: [],
destinationDir: ""
},
};
/* Add sourcemaps on all environments except production */
config.sourcemaps = !(environments.production());
/* Minify build files on all environments except development */
config.minify = !(environments.development());
module.exports = config;