@@ -41,8 +41,8 @@ discard block |
||
41 | 41 | // so we can't extract it from the passed in $config |
42 | 42 | $majorVersion = '4'; |
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 | return [ |
47 | 47 | 'components' => [ |
48 | 48 | 'optimize' => OptimizeService::class, |
@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | 'assetClass' => ImageOptimizeAsset::class, |
54 | 54 | 'checkDevServer' => true, |
55 | 55 | 'class' => VitePluginService::class, |
56 | - 'devServerInternal' => 'http://craft-imageoptimize-' . $versionName . '-buildchain-dev:' . $devPort, |
|
57 | - 'devServerPublic' => 'http://localhost:' . $devPort, |
|
56 | + 'devServerInternal' => 'http://craft-imageoptimize-'.$versionName.'-buildchain-dev:'.$devPort, |
|
57 | + 'devServerPublic' => 'http://localhost:'.$devPort, |
|
58 | 58 | 'errorEntry' => 'src/js/ImageOptimize.js', |
59 | 59 | 'useDevServer' => true, |
60 | 60 | ], |