inklecate-loader

1.8.0 • Public • Published

inklecate-loader

Introduction

A tiny loader for webpack which asynchronously calls the inklecate package, compiling Ink source into JavaScript.

Installation

npm i -D inklecate-loader

Usage

{
  test: /\.ink$/,
  use: require.resolve('inklecate-loader'),
  options: {
    /* Optional, include inklecate compiler options here */
  },
}

Output

/* The story object, to be passed to inkjs or etc. */
export const storyContent = { ... };

/* The original source code. */
export const text = '...';

/* Any warnings output by the compiler. */
export const compilerOutput = [
  'WARNING: Foo bar baz!',
  ...
];

Package Sidebar

Install

npm i inklecate-loader

Weekly Downloads

0

Version

1.8.0

License

GPL-3.0

Unpacked Size

3.18 kB

Total Files

4

Last publish

Collaborators

  • furkle