@splunk/dashboard-extension-webpack-plugin
A Webpack plugin for building Splunk dashboard extensions.
It replaces the initial define
with a require
so that the extension module is executed.
Consider using the dashboard configuration file provided by @splunk/webpack-configs
instead of using this plugin directly.
Install
Install the package:
npm install --save-dev @splunk/dashboard-extension-webpack-plugin
Usage
Import and add the plugin to your webpack configuration:
import DashboardPlugin from '@splunk/dashboard-extension-webpack-plugin';
{
plugins: [new DashboardPlugin()]
}