|
|
const path = require('path');
|
|
|
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
|
|
const pkg = require('../package.json');
|
|
|
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
|
|
|
|
|
const plugins = [
|
...
|
...
|
@@ -22,7 +23,7 @@ module.exports = { |
|
|
mode: 'production',
|
|
|
devtool,
|
|
|
output: {
|
|
|
path: path.join(__dirname, '../dist'),
|
|
|
path: path.join(__dirname, `../dist/apm/${pkg.version}/`),
|
|
|
filename: 'apm.js',
|
|
|
libraryTarget: 'umd',
|
|
|
library: 'apm'
|
...
|
...
|
|