mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
remove string concatenation
This commit is contained in:
parent
f7bc4da49a
commit
79c1f5f4b6
3 changed files with 3 additions and 3 deletions
|
@ -75,7 +75,7 @@ class BaseOptimizer {
|
|||
path: this.env.workingDir,
|
||||
filename: '[name].bundle.js',
|
||||
sourceMapFilename: '[file].map',
|
||||
publicPath: (this.urlBasePath || '') + '/bundles/',
|
||||
publicPath: `${this.urlBasePath || ''}/bundles/`,
|
||||
devtoolModuleFilenameTemplate: '[absolute-resource-path]'
|
||||
},
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ class UiApp {
|
|||
this.hidden = this.spec.hidden;
|
||||
this.autoloadOverrides = this.spec.autoload;
|
||||
this.templateName = this.spec.templateName || 'uiApp';
|
||||
this.url = (spec.urlBasePath || '') + (this.spec.url || '/app/' + this.id);
|
||||
this.url = `${spec.urlBasePath || ''}${this.spec.url || `/app/${this.id}`}`;
|
||||
|
||||
// once this resolves, no reason to run it again
|
||||
this.getModules = _.once(this.getModules);
|
||||
|
|
|
@ -83,7 +83,7 @@ module.exports = async (kbnServer, server, config) => {
|
|||
app: app,
|
||||
loadingGif: loadingGif,
|
||||
kibanaPayload: payload,
|
||||
bundlePath: config.get('server.basePath') + '/bundles',
|
||||
bundlePath: `${config.get('server.basePath')}/bundles`,
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue