From 29a1e2d67ad1cd25d43db7d67cd0550f162ca771 Mon Sep 17 00:00:00 2001 From: Gavin Barron Date: Wed, 28 Feb 2024 17:50:41 +0000 Subject: [PATCH] updating gulpfiles for cross os compatibility --- samples/app/sp-mgt/gulpfile.js | 7 ++++--- samples/app/sp-webpart/gulpfile.js | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/samples/app/sp-mgt/gulpfile.js b/samples/app/sp-mgt/gulpfile.js index 89241ca..6acb362 100644 --- a/samples/app/sp-mgt/gulpfile.js +++ b/samples/app/sp-mgt/gulpfile.js @@ -1,6 +1,7 @@ "use strict"; const build = require("@microsoft/sp-build-web"); +const path = require("path"); build.addSuppression( `Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.` @@ -17,9 +18,9 @@ build.rig.getTasks = function () { // add babel-loader and some transforms to handle es2021 language features which are unsupported in webpack 4 by default const litFolders = [ - "node_modules/lit/", - "node_modules/@lit/", - "node_modules/lit-html/" + `node_modules${path.sep}lit${path.sep}`, + `node_modules${path.sep}@lit${path.sep}`, + `node_modules${path.sep}lit-html${path.sep}` ]; build.configureWebpack.mergeConfig({ additionalConfiguration: generatedConfiguration => { diff --git a/samples/app/sp-webpart/gulpfile.js b/samples/app/sp-webpart/gulpfile.js index 89241ca..6acb362 100644 --- a/samples/app/sp-webpart/gulpfile.js +++ b/samples/app/sp-webpart/gulpfile.js @@ -1,6 +1,7 @@ "use strict"; const build = require("@microsoft/sp-build-web"); +const path = require("path"); build.addSuppression( `Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.` @@ -17,9 +18,9 @@ build.rig.getTasks = function () { // add babel-loader and some transforms to handle es2021 language features which are unsupported in webpack 4 by default const litFolders = [ - "node_modules/lit/", - "node_modules/@lit/", - "node_modules/lit-html/" + `node_modules${path.sep}lit${path.sep}`, + `node_modules${path.sep}@lit${path.sep}`, + `node_modules${path.sep}lit-html${path.sep}` ]; build.configureWebpack.mergeConfig({ additionalConfiguration: generatedConfiguration => {