1.0.0 • Published 4 years ago

webpack-webapp-snippet-plugin v1.0.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
4 years ago

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