2017-03-07 15:57:26 -05:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const gulp = require('gulp');
|
|
|
|
const build = require('@microsoft/sp-build-web');
|
2018-02-26 03:01:51 -05:00
|
|
|
const loaderConfig = {
|
2017-03-07 15:57:26 -05:00
|
|
|
test: /\.hbs/,
|
|
|
|
loader: "handlebars-template-loader"
|
2018-02-26 03:01:51 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);
|
2017-03-07 15:57:26 -05:00
|
|
|
|
|
|
|
build.configureWebpack.mergeConfig({
|
|
|
|
additionalConfiguration: (generatedConfiguration) => {
|
2018-02-26 03:01:51 -05:00
|
|
|
|
|
|
|
generatedConfiguration.module.rules.push(loaderConfig);
|
2017-03-07 15:57:26 -05:00
|
|
|
|
|
|
|
return generatedConfiguration;
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
build.initialize(gulp);
|