webflow-devlink 1.6.2
Install from the command line:
Learn more about npm packages
$ npm install @webflow/webflow-devlink@1.6.2
Install via package.json:
"@webflow/webflow-devlink": "1.6.2"
About this version
yarn add @webflow/webflow-devlink
# or
npm i @webflow/webflow-devlink
On your application's root directory paste the devlink config generated on the devlink modal with
the name of .webflowrc.json
. It should look something like this:
{
"host": "https://api.wfdev.io:8443",
"rootDir": "./webflow-components",
"siteId": "62bdb324c76fbb84822a2b15",
"authToken": "[API TOKEN]"
}
You'll have to generate an API token to your application. This can be done on your Webflow project by going to settings > integrations.
yarn run webflow-devlink sync
The application will output an code that should be pasted on DevLink's modal.
yarn build
To test it on a local application you have two options:
On this project's root directory run:
yarn link
On the root directory of your app run:
yarn link webflow-devlink
The second option you have is to add webflow-devlink
to your project as a local directory. It
should look with something like this:
{
"devDependencies": {
"webflow-devlink": "file:../relative/path/to/webflow-devlink"
}
}
To avoid installing this package you can make use npx
inside your application's directory when
it's already linked or locally installed:
npx webflow-devlink link
By using Webflow DevLink you agree to the Webflow Labs Terms of Service.