Tweak webpack
This commit is contained in:
parent
4305b722ca
commit
108bd260a4
|
|
@ -21,7 +21,7 @@ if (! function_exists('webpack_assets')) {
|
||||||
{
|
{
|
||||||
if (app()->environment('development')) {
|
if (app()->environment('development')) {
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
return "http://127.0.0.1:8080/public/$relativeUri";
|
return "http://127.0.0.1:8080/$relativeUri";
|
||||||
// @codeCoverageIgnoreEnd
|
// @codeCoverageIgnoreEnd
|
||||||
} else {
|
} else {
|
||||||
$path = app('webpack')->$relativeUri;
|
$path = app('webpack')->$relativeUri;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/* eslint-disable no-undef */
|
/* eslint-disable no-undef */
|
||||||
/* eslint-disable camelcase */
|
/* eslint-disable camelcase */
|
||||||
__webpack_public_path__ = process.env.NODE_ENV === 'development'
|
__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/`
|
: `${blessing.base_url}/app/`
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,6 @@ const config = {
|
||||||
},
|
},
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
hot: true,
|
hot: true,
|
||||||
publicPath: '/public/',
|
|
||||||
stats: 'errors-only',
|
stats: 'errors-only',
|
||||||
},
|
},
|
||||||
stats: 'errors-only',
|
stats: 'errors-only',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user