Modify path of front-end resources
This commit is contained in:
parent
ca7c7087ff
commit
12539d5f9d
|
|
@ -57,7 +57,7 @@ if (! function_exists('webpack_assets')) {
|
||||||
if (app()->environment('development')) {
|
if (app()->environment('development')) {
|
||||||
return "http://127.0.0.1:8080/public/$relativeUri";
|
return "http://127.0.0.1:8080/public/$relativeUri";
|
||||||
} else {
|
} else {
|
||||||
return url("public/$relativeUri");
|
return url("app/$relativeUri");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ return [
|
||||||
'api_type' => 'false',
|
'api_type' => 'false',
|
||||||
'announcement' => 'Welcome to Blessing Skin {version}!',
|
'announcement' => 'Welcome to Blessing Skin {version}!',
|
||||||
'color_scheme' => 'skin-blue',
|
'color_scheme' => 'skin-blue',
|
||||||
'home_pic_url' => './public/bg.jpg',
|
'home_pic_url' => './app/bg.jpg',
|
||||||
'custom_css' => '',
|
'custom_css' => '',
|
||||||
'custom_js' => '',
|
'custom_js' => '',
|
||||||
'player_name_rule' => 'official',
|
'player_name_rule' => 'official',
|
||||||
|
|
@ -42,5 +42,5 @@ return [
|
||||||
'plugins_enabled' => '',
|
'plugins_enabled' => '',
|
||||||
'copyright_prefer' => '0',
|
'copyright_prefer' => '0',
|
||||||
'score_per_closet_item' => '0',
|
'score_per_closet_item' => '0',
|
||||||
'favicon_url' => 'public/favicon.ico'
|
'favicon_url' => 'app/favicon.ico'
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "webpack-serve",
|
"dev": "webpack-serve",
|
||||||
"build": "rimraf public && node scripts/build",
|
"build": "rimraf public/app && node scripts/build",
|
||||||
"lint": "eslint --ext=.js,.vue -f=beauty .",
|
"lint": "eslint --ext=.js,.vue -f=beauty .",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"codecov": "codecov -F js",
|
"codecov": "codecov -F js",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
__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 + '/public/';
|
: blessing.base_url + '/app/';
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
@if (file_exists(public_path($path = 'langs/'.config('app.locale').'.js')))
|
@if (file_exists(public_path($path = 'app/langs/'.config('app.locale').'.js')))
|
||||||
<script src="{{ url('public/'.$path) }}"></script>
|
<script src="{{ url($path) }}"></script>
|
||||||
@if (file_exists(resource_path($path = 'lang/overrides/'.config('app.locale').'/locale.js')))
|
@if (file_exists(resource_path($path = 'lang/overrides/'.config('app.locale').'/locale.js')))
|
||||||
<script src="{{ url('resources/'.$path) }}"></script>
|
<script src="{{ url('resources/'.$path) }}"></script>
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
<script src="{{ url('public/langs/'.config('app.fallback_locale').'.js') }}"></script>
|
<script src="{{ url('app/langs/'.config('app.fallback_locale').'.js') }}"></script>
|
||||||
@if (file_exists(resource_path($path = 'lang/overrides/'.config('app.fallback_locale').'/locale.js')))
|
@if (file_exists(resource_path($path = 'lang/overrides/'.config('app.fallback_locale').'/locale.js')))
|
||||||
<script src="{{ url('resources/'.$path) }}"></script>
|
<script src="{{ url('resources/'.$path) }}"></script>
|
||||||
@endif
|
@endif
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ const config = {
|
||||||
'langs/zh_CN': './resources/lang/zh_CN/front-end.js',
|
'langs/zh_CN': './resources/lang/zh_CN/front-end.js',
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: __dirname + '/public',
|
path: __dirname + '/public/app',
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
chunkFilename: devMode
|
chunkFilename: devMode
|
||||||
? '[id].js'
|
? '[id].js'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user