@videinfra/static-website-builder 1.5.2 → 1.6.0

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,12 @@ 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.6.0] - 2022-06-20
8
+ ### Updated
9
+ - gulp-sass to use latest node-sass version
10
+ ### Added
11
+ - `stylesheets.legacy` configuration option to turn off `node-sass` and use `sass`
12
+
7
13
  ## [1.5.2] - 2022-06-17
8
14
  ### Updated
9
15
  - In build mode prevent data from being read more than once
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@videinfra/static-website-builder",
3
- "version": "1.5.2",
3
+ "version": "1.6.0",
4
4
  "description": "Customizable static site project builder",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -43,7 +43,7 @@
43
43
  "gulp-ignore": "^3.0.0",
44
44
  "gulp-plumber": "^1.2.1",
45
45
  "gulp-postcss": "^8.0.0",
46
- "gulp-sass": "^4.1.1",
46
+ "gulp-sass": "^5.1.0",
47
47
  "gulp-sizereport": "^1.2.1",
48
48
  "gulp-sourcemaps": "^3.0.0",
49
49
  "gulp-svgmin": "^4.1.0",
@@ -51,6 +51,8 @@
51
51
  "gulp-twig": "^1.2.0",
52
52
  "minimist": "^1.2.6",
53
53
  "nano-memoize": "^1.3.0",
54
+ "node-sass": "^7.0.1",
55
+ "sass": "^1.52.3",
54
56
  "webpack": "^4.46.0",
55
57
  "webpack-stream": "^5.2.1"
56
58
  },
@@ -2,7 +2,7 @@ const paths = require('./../../lib/get-path');
2
2
  const getConfig = require('./../../lib/get-config');
3
3
  const getPaths = require('./../../lib/get-path');
4
4
  const assign = require('lodash/assign');
5
- const sass = require('gulp-sass');
5
+ const gulpSass = require('gulp-sass');
6
6
 
7
7
 
8
8
  /**
@@ -22,6 +22,7 @@ module.exports = function processSASSConfig (config, fullConfig) {
22
22
 
23
23
  // Engine is a function which returns a gulp pipe function
24
24
  config.engine = function getSASSEngine () {
25
+ const sass = config.legacy ? gulpSass(require('node-sass')) : gulpSass(require('sass'));
25
26
  return sass(getConfig.getTaskConfig('stylesheets', 'sass')).on('error', sass.logError)
26
27
  };
27
28
 
package/plugins/sass.js CHANGED
@@ -5,6 +5,9 @@ exports.stylesheets = {
5
5
  // Add sass to the extensions
6
6
  extensions: ['scss', 'sass'],
7
7
 
8
+ // Use legacy `node-sass` instead of `sass`
9
+ legacy: true,
10
+
8
11
  // SASS options
9
12
  // see https://github.com/sass/node-sass#options
10
13
  sass: {