webpack-webapp-snippet-plugin

1.0.0 • Public • Published

fe-webpack-webapp-snippet-plugin-lib

Provides KASKO webapp snippet configuration in WDS at /snippet route

Usage

yarn add -D @kasko/webpack-webapp-snippet-plugin
+ const KaskoWebappSnippetPlugin = require('@kasko/webpack-webapp-snippet-plugin');
+ const kaskoJsUrl = 'https://eu1.kaskojs.com/v2';

module.exports = {
  // ...
  plugins: [
+   new KaskoWebappSnippetPlugin({
+     kaskoJsUrl,
+     snippetPath: path.resolve('./mock-api/snippet.js'),
+   }),
  ],
}

Development

Installation

yarn install

Testing

yarn test

Linting

yarn lint

/webpack-webapp-snippet-plugin/

    Package Sidebar

    Install

    npm i webpack-webapp-snippet-plugin

    Weekly Downloads

    0

    Version

    1.0.0

    License

    UNLICENSED

    Unpacked Size

    4.74 kB

    Total Files

    3

    Last publish

    Collaborators

    • kaskobuild