Skip to content

Commit 9ad71bb

Browse files
committed
Add ability to overwrite settings locally
1 parent 2496a50 commit 9ad71bb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Umbraco.Web.UI.Client/gulpfile.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ const { views } = require('./gulp/tasks/views');
2323
const { watch } = require('./gulp/tasks/watch');
2424

2525

26+
// Load local overwrites, can be used to overwrite paths in your local setup.
27+
var fs = require('fs');
28+
var onlyScripts = require('./gulp/util/scriptFilter');
29+
var overwrites = fs.readdirSync('./gulp/overwrites/').filter(onlyScripts);
30+
overwrites.forEach(function(overwrite) {
31+
require('./gulp/overwrites/' + overwrite);
32+
});
33+
34+
2635
// ***********************************************************
2736
// These Exports are the new way of defining Tasks in Gulp 4.x
2837
// ***********************************************************

0 commit comments

Comments
 (0)