sp-dev-fx-webparts/gulpfile.js

18 lines
682 B
JavaScript
Raw Normal View History

2017-04-21 01:48:22 -04:00
'use strict';
const gulp = require('gulp');
const build = require('@microsoft/sp-build-web');
/********************************************************************************************
* Adds an alias for handlebars in order to avoid errors while gulping the project
* https://github.com/wycats/handlebars.js/issues/1174
********************************************************************************************/
build.configureWebpack.mergeConfig({
additionalConfiguration: (generatedConfiguration) => {
generatedConfiguration.resolve.alias = { handlebars: 'handlebars/dist/handlebars.min.js' };
return generatedConfiguration;
}
});
build.initialize(gulp);