buried-piont
Version:
post-key值根据登录账号获取 phc_5YuF937Fs3N0djI4XFThsGAZfgaciU9pjKw6T3SQjvV post-host为默认发送到官网后台 https://us.posthog.com/
35 lines (34 loc) • 781 B
JavaScript
const path = require('path');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'main.js',
library: {
name: 'buried-piont',
type: 'umd',
},
globalObject: 'this',
},
mode: 'production',
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
},
},
},
],
},
optimization: {
minimizer: [new TerserPlugin()],
},
plugins: [new CleanWebpackPlugin()],
};