@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | // Constants aren't allowed in traits until PHP >= 8.2 |
40 | 40 | $majorVersion = '1'; |
41 | 41 | // Dev server container name & port are based on the major version of this plugin |
42 | - $devPort = 3000 + (int)$majorVersion; |
|
43 | - $versionName = 'v' . $majorVersion; |
|
42 | + $devPort = 3000 + (int) $majorVersion; |
|
43 | + $versionName = 'v'.$majorVersion; |
|
44 | 44 | // Merge in the passed config, so it our config can be overridden by Plugins::pluginConfigs['vite'] |
45 | 45 | // ref: https://github.com/craftcms/cms/issues/1989 |
46 | 46 | $config = ArrayHelper::merge([ |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | 'assetClass' => InstantAnalyticsAsset::class, |
53 | 53 | 'checkDevServer' => true, |
54 | 54 | 'class' => VitePluginService::class, |
55 | - 'devServerInternal' => 'http://craft-instantanalytics-' . $versionName . '-buildchain-dev:' . $devPort, |
|
56 | - 'devServerPublic' => 'http://localhost:' . $devPort, |
|
55 | + 'devServerInternal' => 'http://craft-instantanalytics-'.$versionName.'-buildchain-dev:'.$devPort, |
|
56 | + 'devServerPublic' => 'http://localhost:'.$devPort, |
|
57 | 57 | 'errorEntry' => 'src/js/app.ts', |
58 | 58 | 'useDevServer' => true, |
59 | 59 | ], |