remove string concatenation

This commit is contained in:
spalger 2015-11-06 16:08:18 -06:00
parent f7bc4da49a
commit 79c1f5f4b6
3 changed files with 3 additions and 3 deletions

View file

@ -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]'
},

View file

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

View file

@ -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`,
});
});
};