Forum Discussion
Increase size of workarea on SPFX Workbench.aspx
Cardinal_Night check out this web part, hope it can help you.
https://github.com/pnp/sp-dev-fx-webparts/tree/master/samples/js-workbench-customizer
You can just add it to your workbench page and carry on working. It will force the workbench to the same size of a normal SharePoint page, and you can also edit the page and change the web part settings to make it full width. It's not the perfect solution, but hope it can help you
Joel Rodrigues Is it a case of simply copying code into the root webparts .ts file?
If it's too complicated I'll probably struggle!
- Dec 03, 2020
No, just download the code from the repository that I linked.
Run: npm install, gulp bundle --ship, gulp package-solution --ship.
Upload the package to the app catalog and add the web part to your workbench page 🙂 The web part will be on the page together with your solution, but it's completely isolated
Let me know if you have any questions. If the instructions on the readme file of the solution are not clear, I would appreciate feedback so I can update them
- Cardinal_NightDec 03, 2020Brass Contributor
Joel Rodrigues Getting error when bundling:
Error: JSON validation failed:
C:\Users\me\developer\sp-dev-fx-webparts\samples\js-workbench-customizer\config\package-solution.jsonError: #/solution
Additional properties not allowed: developer at .... (loads more locations in node modules here).developer is the folder I keep all projects in btw