Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as connect from 'connect';
import * as webpack from 'webpack';
import * as url from 'url'
import { requireNewCopy } from './RequireNewCopy';

export interface CreateDevServerCallback {
Expand Down Expand Up @@ -84,7 +85,7 @@ export function createWebpackDevServer(callback: CreateDevServerCallback, option
// Tell the ASP.NET app what addresses we're listening on, so that it can proxy requests here
callback(null, {
Port: listener.address().port,
PublicPath: removeTrailingSlash(publicPath)
PublicPath: removeTrailingSlash(getPath(publicPath))
});
});
}
Expand All @@ -96,3 +97,7 @@ function removeTrailingSlash(str: string) {

return str;
}

function getPath(publicPath: string){
return url.parse(publicPath).path;
}