- Copy
gulpsettings.js.dist
asgulpsettings.js
to the folder whereJenkinsfile
resides. - Configure the newly copied
gulpsettings.js
. Path can be either relative or absolute. See Gulp src'scwd
option documentation for further information.
/**
* @file
* Provide configuration for the task runner.
*/
module.exports = {
scss: [
{
path: "/path/to/source",
globs: [
"scss/**/*.scss",
"!scss/01-vendor/**"
]
}
],
js: [
{
path: "/path/to/source",
globs: [
"js/**/*.es6.js"
]
}
]
};
If you want to have non-minified CSS with sourcemaps, run
npm run gulp -- --debug
or npm run gulp watch -- --debug
.
- You get
No gulpsettings.js file detected.
error when runningnpm run gulp
: You have copied yourgulpsettings.js
file to a wrong folder. npm run gulp
runs with no issues, but you still don't have the compiled CSS: Make sure to give the correct path to your theme.