23 lines
495 B
JavaScript
23 lines
495 B
JavaScript
'use strict';
|
|
|
|
const gulp = require('gulp');
|
|
const build = require('@microsoft/sp-build-web');
|
|
|
|
// Custom config section starts here
|
|
const loaderConfig = [{
|
|
test: /\.hbs/,
|
|
loader: "handlebars-template-loader"
|
|
}];
|
|
|
|
// push loader configuration to SPFx configuration
|
|
build.configureWebpack.mergeConfig({
|
|
additionalConfiguration: (generatedConfiguration) => {
|
|
generatedConfiguration.module.loaders.push(loaderConfig);
|
|
|
|
return generatedConfiguration;
|
|
|
|
}
|
|
});
|
|
|
|
build.initialize(gulp);
|