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

Bug report: Image display issue in dev and prod #157

Closed
windhamwong opened this issue Jun 20, 2017 · 6 comments
Closed

Bug report: Image display issue in dev and prod #157

windhamwong opened this issue Jun 20, 2017 · 6 comments

Comments

@windhamwong
Copy link

Referring to #150

Summary

I tried to do grunt prod on a fresh cloned project but images are still not showing properly. Images are not encoded in base64 and embedded into html as well. It is still linking to the file path and the content of the image files are encoded in base64 in javascript code. i.e.
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABL0lEQVR4Xp2TPUsDQRCG35VUitiKpYi2IvgbTGFlKUFMaWNnIxap7SxTqShXBrE6wUpLixA/uouVSFrFCxJv75XZCzvsNV587pgblntmZ+7DQNg+3cDiUoxJeE3qiJo3hXx0z7j3xqrIveI4tyRPXgSHd/wv4tZgLb4tEWIA0l2KQHfCaO6Wc4uahPSHCKEX5TC6HmY2Qw1Zhs8RfXF4RUXdXGUXrYUb4WOUa/PlDlxmghUj1egLZLh9esf6yjwE3TsXsdyPRF9YujfuXc7Oxa2tVawtLyAcIsRAn2E3GaDV6UK/xOmZWBWDMpcHmz5/7A9w3HkAhsM6/kSKNyO2n1O2X1LuX/eJ3YhuvTI7FzzpfXHvKqHkKlelcVbIjXOVdVhUGYMoGP+ByhQqonLIL4atOuwJTS7oAAAAAElFTkSuQmCC"

I am still finding a way to fix it, but I would like to ask about more details for the grunt setup here.

Possible solutions

I am currently testing on this.

Environment

Windows 7
npm 4.0.3

$ grunt -V
grunt-cli v1.2.0
grunt v1.0.1

Error message during npm i (in case you would like to know)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN [email protected] requires a peer of grunt@~0.4.1 but none was installed.

@n1474335
Copy link
Member

n1474335 commented Jun 20, 2017

Could you give more information about the environment you're running this in? Is this all on the Windows command line, Cygwin, or through PuTTY on a remote Linux box? I ask because you claim it's Windows 7 but your prompt ($ grunt -V) looks like *nix.

@mattnotmitt
Copy link
Collaborator

I think it might be LXSS.

@windhamwong
Copy link
Author

the $ is my cmd program only. The grunt is installed manually using the grunt Windows installer.

@n1474335
Copy link
Member

@artemisbot LXSS is only supported on Windows 10 and the OS is specified as Windows 7.

@windhamwong I have not actually tried to build Chef on Windows before, so I'll run some tests to see what might be causing the problem. Do you have access to a Linux VM in the meantime? Also, which cmd program are you using on Windows?

@windhamwong
Copy link
Author

@n1474335 yes I can try on a Linux box.
This is a Windows 7 box, and the cmd is just a standard cmd with ConEmu. I just re-run the grunt dev without the cygwin path but the images are still not generated properly.

@windhamwong
Copy link
Author

It is kinda fixed without any reason or action. I will keep checking on this. I will close this if this is no longer an issue.

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

No branches or pull requests

3 participants