-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgulp-config.js
More file actions
executable file
·58 lines (52 loc) · 1.82 KB
/
gulp-config.js
File metadata and controls
executable file
·58 lines (52 loc) · 1.82 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
/**
* Configuration.
*
* Project Configuration for gulp tasks.
*
* In paths you can add <<glob or array of globs>>. Edit the variables as per your project requirements.
*/
module.exports = {
// Style options.
styleSRC: ['./assets/scss/**/*.scss', './blocks/**/*.scss'], // Path to main .scss file.
styleDestination: './assets/css/', // Path to place the compiled CSS file. Default set to root folder.
outputStyle: 'compressed', // Available options → 'compact' or 'compressed' or 'nested' or 'expanded'
precision: 5,
loadPaths: ['./assets/scss'], // Tell Sass where to look for @import statements
// JS Custom options.
scriptSRC: ['./**/*.src.js', '!./vendor/', '!./node_modules/'], // Globs of scripts to process.
scriptBase: './', // Path where the globs are considered to start.
scriptDest: './', // Path where we save the scripts back to.
// Watch files paths.
styleWatchFiles: ['./assets/scss/**/*.scss', './blocks/**/*.scss'], // *.scss files to watch changes and recompile
scriptWatchFiles: ['./assets/js/**/*.src.js', './blocks/**/*.src.js'], // *.src.js files to watch changes and recompile
filesToClean: [
'./assets/css/',
'./assets/js/**/*.js',
'./assets/js/**/*.map',
'!./assets/js/',
'!./assets/js/**/*.src.js',
],
// Dependencies to move into place
// NOTE: rename is object of options to pass to gulp-rename
filesToMove: [
/*
{
src: './node_modules/flickity/dist/flickity.css',
dest: './assets/scss/vendor/',
rename: {
basename: '_flickity',
extname: '.scss'
}
}, {
src: './node_modules/flickity/dist/flickity.pkgd.js',
dest: './assets/js/vendor/',
rename: {
basename: 'flickity.src',
extname: '.js'
}
}
*/
],
// Browsers you care about for autoprefixing. Browserlist https://github.com/browserslist/browserslist
BROWSERS_LIST: ['last 10 versions'],
};