@videinfra/static-website-builder 1.13.3 → 1.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [1.13.4] - 2024-10-08
8
+ ### Fixed
9
+ - Fail gulp process when htmlmin task fails
10
+
7
11
  ## [1.13.1] - 2024-09-19
8
12
  ### Added
9
13
  - Fail whole gulp process when one of the tasks fail
package/lib/log-error.js CHANGED
@@ -1,14 +1,15 @@
1
1
  const chalk = require('chalk');
2
2
 
3
3
  module.exports = function (error, failOnError = false) {
4
- console.log(chalk.red('Error') + ' in \'' + chalk.cyan(error.plugin || error.type) + '\'\nMessage:\n ' + (error.messageFormatted || error.message));
4
+ const message = String(error.messageFormatted || error.message);
5
+ const messageTrimmed = message.length > 4096 ? message.slice(0, 512) + '...' : message;
5
6
 
6
- // Emit the end event, to properly end the task
7
- if (typeof this.emit === 'function') {
8
- this.emit('end');
9
- }
7
+ console.log(chalk.red('Error') + ' in \'' + chalk.cyan(error.plugin || error.type) + '\'\nMessage:\n ' + messageTrimmed);
10
8
 
11
9
  if (failOnError) {
12
10
  throw error;
11
+ } else if (typeof this.emit === 'function') {
12
+ // Emit the end event, to properly end the task
13
+ this.emit('end');
13
14
  }
14
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@videinfra/static-website-builder",
3
- "version": "1.13.3",
3
+ "version": "1.13.4",
4
4
  "description": "Customizable static site project builder",
5
5
  "license": "MIT",
6
6
  "engines": {