@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | // so we can't extract it from the passed in $config |
34 | 34 | $majorVersion = '3'; |
35 | 35 | // Dev server container name & port are based on the major version of this plugin |
36 | - $devPort = 3000 + (int)$majorVersion; |
|
37 | - $versionName = 'v' . $majorVersion; |
|
36 | + $devPort = 3000 + (int) $majorVersion; |
|
37 | + $versionName = 'v'.$majorVersion; |
|
38 | 38 | // Merge in the passed config, so it our config can be overridden by Plugins::pluginConfigs['vite'] |
39 | 39 | // ref: https://github.com/craftcms/cms/issues/1989 |
40 | 40 | $config = ArrayHelper::merge([ |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | 'assetClass' => InstantAnalyticsAsset::class, |
47 | 47 | 'checkDevServer' => true, |
48 | 48 | 'class' => VitePluginService::class, |
49 | - 'devServerInternal' => 'http://craft-instantanalytics-ga4-' . $versionName . '-buildchain-dev:' . $devPort, |
|
50 | - 'devServerPublic' => 'http://localhost:' . $devPort, |
|
49 | + 'devServerInternal' => 'http://craft-instantanalytics-ga4-'.$versionName.'-buildchain-dev:'.$devPort, |
|
50 | + 'devServerPublic' => 'http://localhost:'.$devPort, |
|
51 | 51 | 'errorEntry' => 'src/js/app.ts', |
52 | 52 | 'useDevServer' => true, |
53 | 53 | ], |