@kasko/webpack-webapp-snippet-plugin
v2.0.0
Published
Provides KASKO webapp snippet configuration in WDS at `/snippet` route
Downloads
6
Maintainers
Keywords
Readme
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