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

31 lines
743 B
JavaScript
Raw Normal View History

2022-02-03 12:51:21 -05:00
'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;
};
2022-05-05 09:52:15 -04:00
build.configureWebpack.mergeConfig({
additionalConfiguration: (generatedConfiguration) => {
generatedConfiguration.node = {
fs: 'empty'
},
generatedConfiguration.module.rules.unshift(
{
test: /\.resx$/,
loader: "xml-loader",
}
)
return generatedConfiguration;
}
});
2022-02-03 12:51:21 -05:00
build.initialize(require('gulp'));