Commit a04eeda4 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[BUGFIX] ignore setting extension name if it is an empty string

This is a quickfix for now to be able to use the SGC outside of TYPO3
parent e7ecefff
......@@ -131,6 +131,9 @@ module.exports = class Watch extends Task {
* @param {String} _file The changed file
_setCurrentExtensionName(_file) {
if (this._config.extensions[0] === "") {
// the file path will contain backslashes instead of slashes on windows. we need to normalize this.
let file = _file.replace(/\\/g, '/');
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment