Tweak webpack

This commit is contained in:
Pig Fang 2019-04-05 09:00:43 +08:00
parent 4305b722ca
commit 108bd260a4
3 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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/`

View File

@ -132,7 +132,6 @@ const config = {
},
host: '0.0.0.0',
hot: true,
publicPath: '/public/',
stats: 'errors-only',
},
stats: 'errors-only',