Skip to main content

Uninstall Custom Components

Uninstall custom components (manual steps)

To stop using custom components and use instead the CDN version of @appdirect/sfb-theme-components (instead of the npm module one) please follow these steps:

In the base.html file replace:

    <link rel="stylesheet" type="text/css" href="{{ r("/assets/js/components/sfb-components.css") }}" />

with

    <link rel="stylesheet" type="text/css" href="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components.css" />

    <script src="{{ r("/assets/js/components/sfb-components.js") }}"></script>

with

    <script src="{{ config.channelSettings.channelCanonicalBaseUrl }}/sfb-theme-components@0/sfb-components.js"></script>

In the theme folder:

  • Delete the customComponents folder.
  • Using a terminal execute npm uninstall @appdirect/sfb-theme-components --save.
    npm uninstall @appdirect/sfb-theme-components --save

Was this page helpful?