sp-dev-fx-webparts/samples/react-functional-component-.../gulpfile.js

14 lines
450 B
JavaScript
Raw Normal View History

'use strict';
const gulp = require('gulp');
const build = require('@microsoft/sp-build-web');
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);
build.configureWebpack.mergeConfig({
additionalConfiguration: (config) => {
config.externals = config.externals.filter(name => !(["react", "react-dom"].includes(name)))
return config;
}
});
build.initialize(gulp);