Bug report: Image display issue in dev and prod
See original GitHub issueReferring 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 fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN grunt-execute@0.2.2 requires a peer of grunt@~0.4.1 but none was installed.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
@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?
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.