Create ScandiPWA App
ScandiPWA DocsCreate Magento AppGitHub
  • Create ScandiPWA App
  • Getting Started
    • Getting Started
    • Folder structure
    • Supported Browsers & Features
    • Updating to New Releases
  • Themes
    • Themes
    • File overrides
  • Extensions
    • Extensions
    • Installation
    • Application plugins
      • Plugin Templates
    • Build configuration plugins
    • Plugins for HTML and PHP
    • File provision
    • Module preference
  • Building your app
    • Proxying requests to server
    • Internationalization
    • Creating production build
  • Deploying your app
    • Storefront
    • Magento theme
Powered by GitBook
On this page

Was this helpful?

  1. Extensions

File provision

PreviousPlugins for HTML and PHPNextModule preference

Last updated 4 years ago

Was this helpful?

ScandiPWA introduces concept of "file provisioning". This is a feature of .

To provision a file - means to add a file into the "override" tool-chain with a lowest priority. This would make it discoverable by compiler, while any theme will be able to easily override it.

This is commonly used by extensions which implement changes in the entry-point. In example, @scandipwa/m2-theme provisions the pub/index.php path. It makes it possible to compile an application using this as an HTML entry-point without manually defining it in a theme.

To provision a file, set the scandipwa.provide field of package.json equal to an array, and populate it with desired path to provision.

ScandiPWA extensions