STEP-4 Creating ScandiPWA Extension with additional dependencies
  1. 1.
    Create scandipwa extension using scandipwa-cli, for that navigate to your theme folder, and execute scandipwa extension create @scndipwa/vesrion
  2. 2.
    To add Axios navigate to newly created extensions, and add Axios as a dependency to package.json
scandipwa/packages/@scandipwa/version/package.json
{
"name": "@scandipwa/version",
"version": "0.0.0",
"license": "OSL-3.0",
"scandipwa": {
"type": "extension"
},
"dependencies": {
"axios": "0.22.0"
},
"eslintConfig": {
"extends": "@scandipwa"
}
}
3. From them folder execute npm install
Useful Materials ScandiPWA CLI
Copy link