posthog-helper
Version:
A lightweight posthog wrapper for managing A/B test variations and feature flags
14 lines (11 loc) • 436 B
JavaScript
const path = require('path');
module.exports = {
entry: './src/index.js', // Your main module
output: {
filename: 'posthog-helper.js', // The name of the final built file
path: path.resolve(__dirname, 'dist'), // Where to store the build
library: 'posthogHelper', // Expose it as a global variable (optional)
libraryTarget: 'umd' // Make it compatible with both Node and browsers
},
mode: 'production'
};