Is it possible to package the branding files (CSS, JS, images, ..), custom masterpage and custom layouts and upload them to SharePoint using SharePoint framework (SPFx)?
Asked
Active
Viewed 91 times
1 Answers
0
The SharePoint Modern experience does not have a notion of a customizable page layout as of today.
Here is a documentation tutorial on how to include additional information architecture elements in a SPFx solution (like columns and lists) and here is a blog post on how to include additional assets (like JavaScript or CSS files).
baywet
- 565
- 3
- 9
-
I am using SPFx in classic sites and classic pages because I need to customize the branding. In .wsp solutions we were using “modules “ to upload files to specific paths, is there an alternative here? – NorhanElKholy Mar 08 '19 at 17:24
-
SPFx will allow you to upload files. The classic experience however it will only show up webparts, from SPFx (extensions and ui actions built with SPFx are not supported in classic), and that might be less than ideal for global components. You can always provision things using PnP Provisioning instead. – baywet Mar 08 '19 at 18:09
-
SPFx allows to upload files to SharePoint Style library and Masterpages gallery? How we do this? – NorhanElKholy Mar 08 '19 at 18:16
-
https://sharepoint.stackexchange.com/questions/226589/provision-files-css-js-with-sharepoint-framework – baywet Mar 08 '19 at 19:30
-
Thank you very much, I am trying this solution but this error appears: “property assets is not allowed “, should I add it in a feature? – NorhanElKholy Mar 08 '19 at 19:59
-
if you take a look at the schema, it has to be in a feature indeed. https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json – baywet Mar 08 '19 at 20:03
-
Yes, right. I tried it and it is working. Thank you very much for your assistance. – NorhanElKholy Mar 08 '19 at 20:28