23 lines
639 B
JavaScript
23 lines
639 B
JavaScript
'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;
|
|
}
|
|
});
|
|
|
|
var getTasks = build.rig.getTasks;
|
|
build.rig.getTasks = function () {
|
|
var result = getTasks.call(build.rig);
|
|
|
|
result.set('serve', result.get('serve-deprecated'));
|
|
|
|
return result;
|
|
};
|
|
|
|
build.initialize(gulp);
|