forked from LastCallMedia/Drupal-Scaffold
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpconfig.js
46 lines (44 loc) · 1.17 KB
/
gulpconfig.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
45
46
/* eslint-env node */
var docroot = './web';
module.exports = {
version: 1,
scss: {
theme: {
src: docroot + '/themes/custom/scaffold/scss/**/*.scss',
maps: '../maps',
prefix: {browsers: 'last 2 versions', cascade: false},
dest: docroot + '/themes/custom/scaffold/dist/css',
// Pass options to node-sass.
sassOptions: {
// Include paths to resolve automatically.
includePaths: ['./node_modules/']
}
}
},
js: {
'theme-custom': {
src: [docroot + '/themes/custom/scaffold/js/**/*.js'],
concat: false,
min: true,
maps: '../maps',
dest: docroot + '/themes/custom/scaffold/dist/js'
},
'theme-libs': {
src: [
'./node_modules/what-input/dist/what-input.js',
'./node_modules/foundation-sites/dist/js/foundation.js'
],
concat: 'libs.js',
min: true,
maps: '../maps',
dest: docroot + '/themes/custom/scaffold/dist/js'
}
},
copy: {
theme: {
src: [docroot + '/themes/custom/scaffold/images'],
imagemin: false, // Requires gulp-imagemin package.
dest: docroot + '/themes/custom/scaffold/dist/images'
}
}
};