diff --git a/src/optimize/base_optimizer.js b/src/optimize/base_optimizer.js index 9280858d9baef1a..7580173c99bcc7d 100644 --- a/src/optimize/base_optimizer.js +++ b/src/optimize/base_optimizer.js @@ -20,7 +20,6 @@ const babelExclude = [/[\/\\](webpackShims|node_modules|bower_components)[\/\\]/ class BaseOptimizer { constructor(opts) { this.env = opts.env; - this.urlBasePath = opts.urlBasePath; this.bundles = opts.bundles; this.profile = opts.profile || false; @@ -102,7 +101,6 @@ class BaseOptimizer { path: this.env.workingDir, filename: '[name].bundle.js', sourceMapFilename: '[file].map', - publicPath: `${this.urlBasePath || ''}/bundles/`, devtoolModuleFilenameTemplate: '[absolute-resource-path]' }, diff --git a/src/ui/index.js b/src/ui/index.js index 0de674878ed18ca..94ed7229d316a90 100644 --- a/src/ui/index.js +++ b/src/ui/index.js @@ -20,7 +20,6 @@ export default async (kbnServer, server, config) => { const bundlerEnv = new UiBundlerEnv(config.get('optimize.bundleDir')); bundlerEnv.addContext('env', config.get('env.name')); - bundlerEnv.addContext('urlBasePath', config.get('server.basePath')); bundlerEnv.addContext('sourceMaps', config.get('optimize.sourceMaps')); bundlerEnv.addContext('kbnVersion', config.get('pkg.version')); bundlerEnv.addContext('buildNum', config.get('pkg.buildNum'));