This project has a simple web page that uses a TTVC metric library.
Use npm to install dependencies
npm install
Run webpack build to generate files in dist/
folder.
npm run build
You can also use a local webpack dev server to see page in action.
npm run serve
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
, defer
ring it or inlining into your codebase to see what is the best way.