Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
Fix issue with trailing slash on root config option
Browse files Browse the repository at this point in the history
  • Loading branch information
ostowe committed Oct 16, 2017
1 parent 0db5dbc commit 33fcc3a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
7 changes: 4 additions & 3 deletions dist/cli/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cli/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "huron",
"description": "An in-browser prototyping tool built on top of webpack and kss-node",
"author": "Alley Interactive",
"version": "2.3.0-beta.6",
"version": "2.3.0-beta.7",
"license": "GPL-2.0",
"repository": {
"type": "git",
Expand Down
5 changes: 4 additions & 1 deletion src/cli/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import open from 'opn';

import createDevServerConfig from '../../config/devServer.config';
import program from './parseArgs';
import { removeTrailingSlash } from './utils';

/**
* Spin up webpack-dev-server or, if production flag is set, run webpack a single time
Expand Down Expand Up @@ -67,7 +68,9 @@ export default function startWebpack(config) {
}

console.log(`Listening at http://localhost:${huron.port}/`);
open(`http://localhost:${huron.port}/${huron.root}/${prototypeName}.html`);
open(`http://localhost:${huron.port}/${
removeTrailingSlash(huron.root)
}/${prototypeName}.html`);
return true;
}
);
Expand Down

0 comments on commit 33fcc3a

Please sign in to comment.