-
Notifications
You must be signed in to change notification settings - Fork 1k
Upgrading existing solution to evaluate SPFx 1.12.1 release candidate
Kevin Coughlin edited this page Apr 12, 2021
·
2 revisions
- Modify the solution's SPFx package versions in package.json to latest
1.12.1-rc.xe.g.1.12.1-rc.0. - SPFx
>= 1.12.0requires Gulp@4 for Node 12 & 14 compatibility. Modify the solution'sgulpversion to4.0.2. - Run "npm install" or similar to install the new dependencies.
- Modify
gulpfile.jsto include a re-alias of "gulp serve". NOTE: non-RC @microsoft/generator-sharepoint does this during project scaffold.
const build = require('@microsoft/sp-build-web');
var getTasks = build.rig.getTasks;
build.rig.getTasks = function () {
var result = getTasks.call(build.rig);
result.set('serve', result.get('serve-deprecated'));
return result;
};- The
dist/folder can be cleaned using--cleanCLI flag e.g.gulp bundle --clean.
-
Getting Started