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