Skip to content

Commit

Permalink
updating gulpfiles for cross os compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinbarron committed Feb 28, 2024
1 parent 449c448 commit 29a1e2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions samples/app/sp-mgt/gulpfile.js
Original file line number Diff line number Diff line change
@@ -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.`
Expand All @@ -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 => {
Expand Down
7 changes: 4 additions & 3 deletions samples/app/sp-webpart/gulpfile.js
Original file line number Diff line number Diff line change
@@ -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.`
Expand All @@ -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 => {
Expand Down

0 comments on commit 29a1e2d

Please sign in to comment.