2019-06-14 12:14:50 -04:00
|
|
|
'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;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2022-02-15 12:07:26 -05:00
|
|
|
var getTasks = build.rig.getTasks;
|
|
|
|
build.rig.getTasks = function () {
|
|
|
|
var result = getTasks.call(build.rig);
|
|
|
|
|
|
|
|
result.set('serve', result.get('serve-deprecated'));
|
|
|
|
|
|
|
|
return result;
|
|
|
|
};
|
|
|
|
|
2019-06-14 12:14:50 -04:00
|
|
|
build.initialize(gulp);
|