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)?


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).

  • 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? Mar 8 '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 8 '19 at 18:09
  • SPFx allows to upload files to SharePoint Style library and Masterpages gallery? How we do this? Mar 8 '19 at 18:16
  • 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? Mar 8 '19 at 19:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.