Skip to content

Commit

Permalink
[optimizer] Use relative paths instead of absolute publicPath
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Mar 22, 2017
1 parent fd78011 commit 5539969
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/optimize/base_optimizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

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

Expand Down
1 change: 0 additions & 1 deletion src/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 5539969

Please sign in to comment.