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
1
{
2
"name": "@scandipwa/version",
3
"version": "0.0.0",
4
"license": "OSL-3.0",
5
"scandipwa": {
6
"type": "extension"
7
},
8
"dependencies": {
9
"axios": "0.22.0"
10
},
11
"eslintConfig": {
12
"extends": "@scandipwa"
13
}
14
}
15
Copied!
3. From them folder execute npm install
Useful Materials ScandiPWA CLI
Last modified 1mo ago
Copy link