Skip to content

Commit

Permalink
Fix issue with normalizeOptions and publicUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
micopc committed Dec 6, 2017
1 parent 90f69ff commit 9b06612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Bundler extends EventEmitter {

normalizeOptions(options) {
const isProduction = options.production || process.env.NODE_ENV === 'production';
const publicURL = options.publicURL || '/' + Path.basename(options.outDir || 'dist');
const publicURL = options.publicUrl || options.publicURL || '/' + Path.basename(options.outDir || 'dist');
const watch = typeof options.watch === 'boolean' ? options.watch : !isProduction;
return {
outDir: Path.resolve(options.outDir || 'dist'),
Expand Down

0 comments on commit 9b06612

Please sign in to comment.