sergeychernyshev / ttvc-prototype

A prototype for TTVC metric integration

Home Page:https://ttvc-prototype.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prototype website using TTVC metric

This project has a simple web page that uses a TTVC metric library.

Installing dependencies

Use npm to install dependencies

npm install

Building the code

Run webpack build to generate files in dist/ folder.

npm run build

Running local server

You can also use a local webpack dev server to see page in action.

npm run serve

Inline vs. external resource

You can modify webpack.config.js file and uncomment new HtmlInlineScriptPlugin() line to inline the code in HTML rather than generating a standalone file.

Standalone file can be useful for copying into your application as is (it includes your code from src/index.js and the TTVC library itself). Feel free to experiment with loading it asunc, deferring it or inlining into your codebase to see what is the best way.

About

A prototype for TTVC metric integration

https://ttvc-prototype.netlify.app


Languages

Language:HTML 86.7%Language:JavaScript 13.3%