sp-dev-fx-webparts/samples/react-graph-auto-batching/gulpfile.js

31 lines
743 B
JavaScript

'use strict';
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.`);
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.configureWebpack.mergeConfig({
additionalConfiguration: (generatedConfiguration) => {
generatedConfiguration.node = {
fs: 'empty'
},
generatedConfiguration.module.rules.unshift(
{
test: /\.resx$/,
loader: "xml-loader",
}
)
return generatedConfiguration;
}
});
build.initialize(require('gulp'));