Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

mobifyjs symbol-link/directory-alias not working (Windows) #302

Open
MadLittleMods opened this issue Apr 16, 2015 · 0 comments
Open

mobifyjs symbol-link/directory-alias not working (Windows) #302

MadLittleMods opened this issue Apr 16, 2015 · 0 comments

Comments

@MadLittleMods
Copy link

MadLittleMods commented Apr 16, 2015

When running grunt server, I get this error: Error: ENOENT, no such file or directory 'mobifyjs-2.0\mobifyjs\performance\resources\samplescripts'.

I assume this is because express isn't properly using the mobifyjs file in the root.

I am on running on Windows.


Using connect-modrewrite package or something like it to actually alias fixes the problem:

var modRewrite = require('connect-modrewrite');

app.use(modRewrite([
    '^/mobifyjs/(.*) /$1 [L]'
]));
@MadLittleMods MadLittleMods changed the title mobifyjs file "alias" not working (Windows) mobifyjs directory "alias" not working (Windows) Apr 16, 2015
@MadLittleMods MadLittleMods changed the title mobifyjs directory "alias" not working (Windows) mobifyjs symbol-link/directory-alias not working (Windows) Apr 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant