[jbosstools-issues] [JBoss JIRA] (JBIDE-17944) BrowserSim: Use http: protocol instead of file: for accessing local files

Max Rydahl Andersen (JIRA) issues at jboss.org
Wed Jul 30 11:28:30 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-17944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12989179#comment-12989179 ] 

Max Rydahl Andersen commented on JBIDE-17944:
---------------------------------------------

I think browsersim should support file:// natively.

But there is a point in having the option to "simulate" standalone apps, but for that we already have livereload that can serve out content via http (but it doesn't know about web content root ;/)

One could argue maybe preview should get more of the features browsersim has (mobile support etc.)

I think there is a middle ground to be found though - but not sure how to do it without making it utterly complex to manage ;) 

> BrowserSim: Use http: protocol instead of file: for accessing local files
> -------------------------------------------------------------------------
>
>                 Key: JBIDE-17944
>                 URL: https://issues.jboss.org/browse/JBIDE-17944
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: browsersim
>            Reporter: Alexey Kazakov
>            Assignee: Konstantin Marmalyukov
>             Fix For: 4.3.0.Alpha1
>
>
> Currently, BrowserSim works through file: protocol but this protocol doesn't work well with paths relative to the webroot (which start with "/").
> So if a local file contains any links to local resources (css, js, ...) via relative paths then these resources are not available in BrowserSim.
> For example all official ionic example projects use such paths. It makes "open with BrowserSim" feature useless for those projects.
> It would be great if BrowserSim uses http: as our HTML5 preview does.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jbosstools-issues mailing list