1
0
Fork 0
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:
Anthony Lapenna 2019-06-02 18:16:07 +12:00 committed by GitHub
parent d75f2f5d7d
commit 1d9166216a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View file

@ -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: {