1.0.2 • Published 6 years ago

@yaba/plugin v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

This is the webpack plugin used to send bundle data to the Yaba application.

This document will provide simple webpack configuration. you should check the documentation for further details.

Install the Yaba Plugin

Install Yaba Plugin via npm or yarn.

  npm i --save-dev @yaba/plugin
  yarn add --dev @yaba/plugin

Configure the Yaba Plugin

webpack.config.js

const YabaPlugin = require('@yaba/plugin');

module.exports = {
  entry: 'index.js',
  output: {
    path: __dirname + '/dist',
    filename: 'bundle.js'
  },
  plugins: [
    new YabaPlugin()
  ]
}

If Yaba application is not running, the plugin doesn't do anything.