mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
feat(app): set anonymizeIp property for GA (#2919)
This commit is contained in:
parent
d75f2f5d7d
commit
1d9166216a
4 changed files with 8 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
|||
const path = require('path');
|
||||
const { ProvidePlugin, IgnorePlugin } = require('webpack');
|
||||
const pkg = require('../package.json');
|
||||
const { ProvidePlugin, IgnorePlugin, DefinePlugin } = require('webpack');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const WebpackBuildNotifierPlugin = require('webpack-build-notifier');
|
||||
const CleanTerminalPlugin = require('clean-terminal-webpack-plugin');
|
||||
|
@ -94,6 +95,9 @@ module.exports = {
|
|||
new LodashModuleReplacementPlugin({
|
||||
shorthands: true,
|
||||
collections: true
|
||||
}),
|
||||
new DefinePlugin({
|
||||
__CONFIG_GA_ID: JSON.stringify(pkg.config.GA_ID),
|
||||
})
|
||||
],
|
||||
optimization: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue