This is an automated email from the ASF dual-hosted git repository.
sseifert pushed a commit to branch feature/update-fe-tooling
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-content.git
The following commit(s) were added to refs/heads/feature/update-fe-tooling by
this push:
new 9c3c5a9 update gulp config
9c3c5a9 is described below
commit 9c3c5a913f11416f98ebc1cdbc9fdd2b511030f3
Author: Stefan Seifert <[email protected]>
AuthorDate: Thu Nov 21 14:08:04 2024 +0100
update gulp config
---
src/main/frontend/gulpfile.js | 8 ++++----
src/main/frontend/package.json | 3 ++-
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/main/frontend/gulpfile.js b/src/main/frontend/gulpfile.js
index e692df5..9ac592d 100644
--- a/src/main/frontend/gulpfile.js
+++ b/src/main/frontend/gulpfile.js
@@ -15,7 +15,7 @@
* limitations under the License.
*/
const gulp = require('gulp');
-const sass = require('gulp-sass');
+const sass = require('gulp-sass')(require('sass'));
const header = require('gulp-header');
const cleanCSS = require('gulp-clean-css');
var concatCss = require('gulp-concat-css');
@@ -50,8 +50,8 @@ gulp.task('styles', function() {
});
gulp.task('assets', function() {
-
gulp.src(['./src/{fonts,img}/**/*']).pipe(gulp.dest('./dist/initial-content/content/starter'));
+ return gulp.src(['./src/{fonts,img}/**/*'])
+ .pipe(gulp.dest('./dist/initial-content/content/starter'));
});
-
-gulp.task('default', ['styles', 'assets'], function() {});
\ No newline at end of file
+gulp.task('default', gulp.series(gulp.parallel('styles', 'assets')));
\ No newline at end of file
diff --git a/src/main/frontend/package.json b/src/main/frontend/package.json
index 9e7b239..fb20b5d 100644
--- a/src/main/frontend/package.json
+++ b/src/main/frontend/package.json
@@ -12,7 +12,8 @@
"gulp-concat-css": "^3.1.0",
"gulp-header": "^2.0.9",
"gulp-clean-css": "^4.3.0",
- "gulp-sass": "^5.1.0"
+ "gulp-sass": "^5.1.0",
+ "sass": "^1.81.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"