@videinfra/static-website-builder 1.16.0 → 1.16.2

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.16.2] - 2025-10-29
8
+ ### Updated
9
+ - Changed `sass` to sync for better performance
10
+
7
11
  ## [1.16.0] - 2025-10-22
8
12
  ### Updated
9
13
  - Removed `node-sass` and use `sass` module
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@videinfra/static-website-builder",
3
- "version": "1.16.0",
3
+ "version": "1.16.2",
4
4
  "description": "Customizable static site project builder",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -38,11 +38,11 @@ module.exports = function processSASSConfig (config, fullConfig) {
38
38
  const sassConfig = getConfig.getTaskConfig('stylesheets', 'sass');
39
39
 
40
40
  if (config.legacy) {
41
- sassConfig.silenceDeprecations = (sassConfig.silenceDeprecations || []).concat(['import', 'global-builtin', 'slash-div']);
41
+ sassConfig.silenceDeprecations = (sassConfig.silenceDeprecations || []).concat(['import', 'global-builtin', 'slash-div', 'color-functions']);
42
42
  }
43
43
 
44
44
  sassConfig.data = merge(getEnvData().sass, sassConfig.data || {});
45
- return sass(sassConfig).on('error', sass.logError)
45
+ return sass(sassConfig, /* sync */ true).on('error', sass.logError);
46
46
  };
47
47
 
48
48
  // Main 'dependents' config is shared between all tasks
@@ -93,7 +93,7 @@ module.exports = function (options) {
93
93
  if (options.async) {
94
94
  template.renderAsync(data)
95
95
  .then(function (output) {
96
- file.contents = new Buffer(output);
96
+ file.contents = Buffer.from(output);
97
97
  file.path = data._target.path;
98
98
  cb(null, file);
99
99
  })
@@ -110,7 +110,7 @@ module.exports = function (options) {
110
110
  });
111
111
  } else {
112
112
  try {
113
- file.contents = new Buffer(template.render(data));
113
+ file.contents = Buffer.from(template.render(data));
114
114
  }catch(e){
115
115
  if (options.errorLogToConsole) {
116
116
  log(PLUGIN_NAME + ' ' + e);