Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix isomorphic-assets.json write path #1264

Merged
merged 2 commits into from
May 31, 2019
Merged

Conversation

1846689910
Copy link
Contributor

No description provided.

Fs.writeFileSync(assetsFile, source);
const dir = Path.resolve("./dist");
if (!Fs.existsSync(dir)) shell.mkdir("-p", dir);
Fs.writeFileSync(Path.join(dir, assetsFile), source);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a good idea to use assetsFile which was joined with memFs's CWD. Real FS is always process.cwd()/dist/server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants