@bundles/bundles-tplit

A bundler plugin for Bundles which compiles data with tplit, a native JavaScript string template engine.

Usage no npm install needed!

<script type="module">
  import bundlesBundlesTplit from 'https://cdn.skypack.dev/@bundles/bundles-tplit';
</script>

README

Bundles Tplit Bundler

NPM version NPM downloads per month Travis branch Codacy code quality Codacy code coverage Coverage Status JavaScript Style Guide code style: prettier semantic release Commitizen friendly License Greenkeeper badge

This is a bundler plugin for Bundles. It uses tplit to compile Bundles input with the power of native JavaScript templating with template literals.

Environment support

Node CLI ES Module Browser UMD
x x x

Install

npm install @bundles/core @bundles/bundles-tplit -D

Usage

See configuring Bundles for how to configure Bundles and bundlers.

Configuration

The following configuration options are available:

  • options {Object} Options passed to tplit.

Data

The tplit bundler utilizes the file.data property to compile your tplit files with data.