Jump to content
Search Community

How to test member plugin locally

ywlee test
Moderator Tag

Recommended Posts

Hi everyone

While playing Flip plugin on Codepen, I found these words in the console :

Quote

A trial version of Flip is loaded that only works locally and on domains like codepen.io ...

But when I downloaded the file and put a script tag in my html, it doesn't work(I'm using Parcel and a local server). I guess in this way the file doesn't know it's been used in a local environment?

 I also tried 

import { Flip } from 'pathToFile'

it doesn't work either...

What should I do instead? Could anyone give me a hint?

Thank you for reading my question:)

Link to comment
Share on other sites

By "local", it just tests if the URL starts with "file://" OR contains "localhost" or "127.0.0.1". You're probably using a different setup locally that doesn't follow one of those conventions. The plugin isn't made to sense every local server setup possible, sorry. You are welcome to use those CodePen-safe trial files on CodeSandbox.io or StackBlitz.com. 

 

We haven't announced anything officially yet, but there is a "gsap-trial" package on NPM that you could use. It has exactly the same limitations, though - it's just that some people find it more convenient to do module imports. https://www.npmjs.com/package/gsap-trial

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...