#

SPO: wie kann man die Start-Datei in SharePoint Webpart ändern

 

Startpage, Webpart, React Webpart, Browser

SharePoint : Debuggen mit Browser, VS Code

 

Man kann die Startpage in der launch.json im Verzeichnis .vscode einstellen.

Hier kann man auch einstellen, mit welchem Browser bei F5 Start Debug aus VSCode gestartet werden soll

 

In .vscode/launch.json

"url": "https://comlinesetest.sharepoint.com/_layouts/workbench.aspx",

 

 

 

 

launch.json

Pfad+Datei: .vscode/launch.json

{

  /**

   * Install Chrome Debugger Extension for Visual Studio Code to debug your components with the

   * Chrome browser: https://aka.ms/spfx-debugger-extensions

   */

  "version""0.2.0",

  "configurations": [{

      "name""Local workbench",

      "type""chrome",

      "request""launch",

      "url""https://localhost:4321/temp/workbench.html",

      "webRoot""${workspaceRoot}",

      "sourceMaps"true,

      "sourceMapPathOverrides": {

        "webpack:///.././src/*""${webRoot}/src/*",

        "webpack:///../../../src/*""${webRoot}/src/*",

        "webpack:///../../../../src/*""${webRoot}/src/*",

        "webpack:///../../../../../src/*""${webRoot}/src/*"

      },

      "runtimeArgs": [

        "--remote-debugging-port=9222"

      ]

    },

    {

      "name""Hosted workbench",

      "type""chrome",

      "request""launch",

      "url""https://comlinesetest.sharepoint.com/_layouts/workbench.aspx",

      "webRoot""${workspaceRoot}",

      "sourceMaps"true,

      "sourceMapPathOverrides": {

        "webpack:///.././src/*""${webRoot}/src/*",

        "webpack:///../../../src/*""${webRoot}/src/*",

        "webpack:///../../../../src/*""${webRoot}/src/*",

        "webpack:///../../../../../src/*""${webRoot}/src/*"

      },

      "runtimeArgs": [

        "--remote-debugging-port=9222",

        "-incognito"

      ]

    }

  ]

}

 

 

Mobile

.

123movies