Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • haasz/laravel-mix-ext
1 result
Show changes
Commits on Source (4)
......@@ -30,7 +30,7 @@ Its use is recommended for those developments which are stand-alone (not Laravel
#### With operating systems
##### v1.4.4 – v1.5.6
##### v1.4.4 – v1.5.7
- Linux
- macOS
......@@ -43,7 +43,7 @@ Its use is recommended for those developments which are stand-alone (not Laravel
#### With Laravel Mix versions
##### v1.5.0 – v1.5.6
##### v1.5.0 – v1.5.7
1.5.1 ≤ Laravel Mix version < 1.6.0
......@@ -119,6 +119,12 @@ Go for it! Start the development…
## Release notes
##### v1.5.7
Fixes the watching of the template files.
Adds a timestamp to the logging of the template processing.
##### v1.5.6
Adds the logging of the template processing and a native notification that the template processing is done.
......
{
"name": "laravel-mix-ext",
"version": "1.5.6",
"version": "1.5.7",
"description": "The Extension of Laravel Mix.",
"main": "src/index.js",
"scripts": {
......
......@@ -625,12 +625,12 @@ function processTemplates(templates) {
* @param {Function} callback The callback function.
*/
function watchFile(file, callback) {
file = File.find(file);
chokidar
let absolutePath = File.find(file).path();
let watcher = chokidar
.watch(
file.path(),
absolutePath,
{
persistent: true
persistent: false
}
)
.on(
......@@ -639,6 +639,8 @@ function watchFile(file, callback) {
if (typeof callback === 'function') {
callback(file);
}
watcher.unwatch(absolutePath);
watchFile(file, callback);
}
)
;
......
......@@ -106,6 +106,9 @@ TemplateProcessingLog.prototype.toString = function toString() {
page.push([
colors.bold('Template processing'.toUpperCase())
]);
page.push([
new Date().toLocaleString()
]);
if (this.templateFileLogs.length) {
for (var i = 0; i < this.templateFileLogs.length; ++i) {
page.push(['']);
......