1.0.0 • Published 5 years ago
webpack-webapp-snippet-plugin v1.0.0
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
1.0.0
5 years ago