Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Aug 14, 2024
1 parent 1e20874 commit 63273d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/browser/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ const CircularDependencyPlugin = require('circular-dependency-plugin')
const isProd = process.env.NODE_ENV === 'production'

const ASSET_PATH = process.env.ASSET_PATH
? process.env.ASSET_PATH || ''
? process.env.ASSET_PATH
: !isProd
? '/node_modules/@segment/analytics-next/dist/umd/'
: undefined

const plugins = [
new CompressionPlugin({}),
new webpack.EnvironmentPlugin({
ASSET_PATH,
ASSET_PATH: ASSET_PATH || '',
IS_WEBPACK_BUILD: true,
}),
new CircularDependencyPlugin({
Expand Down

0 comments on commit 63273d5

Please sign in to comment.