This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "HubSiteId": "d63d74d9-dfb7-46ce-8f04-c1d6d674075c", | |
| "IsHubSite": true | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(() => { | |
| const url = new URL(window.location.href); | |
| url.searchParams.set("loadSPFX", true); | |
| url.searchParams.set("debugManifestsFile", "https://localhost:4321/temp/manifests.js"); | |
| document.location = url.href; | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // BEFORE | |
| "extends": "./node_modules/@microsoft/rush-stack-compiler-2.7/includes/tsconfig-web.json" | |
| // AFTER | |
| "extends": "./node_modules/@microsoft/rush-stack-compiler-3.3/includes/tsconfig-web.json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from 'react'; | |
| import styles from './HelloWorld.module.scss'; | |
| import { IHelloWorldProps } from './IHelloWorldProps'; | |
| export default class HelloWorld extends React.Component<IHelloWorldProps, {}> { | |
| private OtherComponent = React.lazy(() => import('./TestComponent' /* webpackChunkName: "testcomponent" */)); | |
| public render(): React.ReactElement<IHelloWorldProps> { | |
| return ( | |
| <div className={ styles.helloWorld }> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // BEFORE | |
| "extends": "./node_modules/@microsoft/rush-stack-compiler-2.7/includes/tsconfig-web.json" | |
| // AFTER | |
| "extends": "./node_modules/@microsoft/rush-stack-compiler-3.2/includes/tsconfig-web.json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Note this overrides the getters for ship and production on args | |
| this.args.ship = this.args.production = (this.args.production || this.args.ship); | |
| // Since gulp-core-build doesn't recognize the --ship flag, ensure it gets the right state | |
| coreBuild.mergeConfig({ | |
| production: this.args.ship, | |
| shouldWarningsFailBuild: this.args.ship | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @ts-check | |
| 'use strict'; | |
| const gulp = require('gulp'); | |
| const build = require("@microsoft/sp-build-web"); | |
| build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`); | |
| // Retrieve the current build config and check if there is a `warnoff` flag set | |
| const crntConfig = build.getConfig(); | |
| const warningLevel = crntConfig.args["warnoff"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const testingTask = build.subTask("testing", async function (gulp, buildOptions, done) { | |
| this.log('LOG: Just logging'); | |
| this.logWarning('WARNING: Just a warning!'); | |
| this.logError(`ERROR: ohh, no, this doesn't look good!`); | |
| }); | |
| build.task("testing", testingTask); |