diff --git a/app/helpers.php b/app/helpers.php index c6111b47..aa556078 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -21,7 +21,7 @@ if (! function_exists('webpack_assets')) { { if (app()->environment('development')) { // @codeCoverageIgnoreStart - return "http://127.0.0.1:8080/public/$relativeUri"; + return "http://127.0.0.1:8080/$relativeUri"; // @codeCoverageIgnoreEnd } else { $path = app('webpack')->$relativeUri; diff --git a/resources/assets/src/scripts/public-path.js b/resources/assets/src/scripts/public-path.js index fd527f13..4a6d9d11 100644 --- a/resources/assets/src/scripts/public-path.js +++ b/resources/assets/src/scripts/public-path.js @@ -1,5 +1,5 @@ /* eslint-disable no-undef */ /* eslint-disable camelcase */ __webpack_public_path__ = process.env.NODE_ENV === 'development' - ? 'http://127.0.0.1:8080/public/' + ? 'http://127.0.0.1:8080/' : `${blessing.base_url}/app/` diff --git a/webpack.config.js b/webpack.config.js index c34eca25..fb62975a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -132,7 +132,6 @@ const config = { }, host: '0.0.0.0', hot: true, - publicPath: '/public/', stats: 'errors-only', }, stats: 'errors-only',