mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-02-05 20:48:17 +00:00
* handlebarsjs webpack loader sample * removed trashed folder * Updated Package.json * Added ES6 Collections * Update HandlebarJS gulpfile.js * Update to Version 1.4.1 * Update Drop Icon
23 lines
520 B
JavaScript
23 lines
520 B
JavaScript
'use strict';
|
|
|
|
const gulp = require('gulp');
|
|
const build = require('@microsoft/sp-build-web');
|
|
const loaderConfig = {
|
|
test: /\.hbs/,
|
|
loader: "handlebars-template-loader"
|
|
};
|
|
|
|
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);
|
|
|
|
build.configureWebpack.mergeConfig({
|
|
additionalConfiguration: (generatedConfiguration) => {
|
|
|
|
generatedConfiguration.module.rules.push(loaderConfig);
|
|
|
|
return generatedConfiguration;
|
|
|
|
}
|
|
});
|
|
|
|
build.initialize(gulp);
|