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 with built assets on Windows #1351

Closed
craigpearson opened this issue Feb 26, 2015 · 4 comments · Fixed by #1353
Closed

Bug with built assets on Windows #1351

craigpearson opened this issue Feb 26, 2015 · 4 comments · Fixed by #1353
Labels

Comments

@craigpearson
Copy link

This is a weird one, I have ran a build in gulp, ran a production etc however modernizr.js is not getting added to dist/scripts

The weird thing is that all modernizr classes get added to the body and modernizr is present on the page. Yet I get a 404 error on the asset request which is in the footer loaded before the jQuery CDN. And the asset is not present in theme folder.

I'm new to gulp but I haven't changed any configuration, am I missing something here?

@RainbowKpx
Copy link

Hi,
same here, i've seen that modernizr is included and minify in main.js, but we have an include from the assets.php too (line 122), to turn off the error I've just comment this line.

I'm new in Sage so you might be wait for another person to confirm but it seem to be the right way to correct that problem.

Btw, sorry for my english.

Best regards.

@retlehs
Copy link
Sponsor Member

retlehs commented Feb 26, 2015

i just cloned this repo, ran npm install, ran bower install, and ran gulp:

➜  sage git:(master) ls dist/scripts
jquery-e5581654.js    main-0f58ea64.js      modernizr-b4a03e7f.js

@RainbowKpx modernizr is not being included in main.js.

if you have further support questions please ask over on https://discourse.roots.io/

@retlehs retlehs closed this as completed Feb 26, 2015
@roots roots locked and limited conversation to collaborators Feb 26, 2015
@roots roots unlocked this conversation Feb 26, 2015
@retlehs retlehs changed the title Modernizr not added to dist/scripts Bug with built assets on Windows Feb 26, 2015
@retlehs retlehs added the bug label Feb 26, 2015
@retlehs retlehs reopened this Feb 26, 2015
@retlehs
Copy link
Sponsor Member

retlehs commented Feb 26, 2015

@austinpray
Copy link
Contributor

It seems this is an issue with asset-builder and windows. I am currently working on a patch over at: https://github.com/austinpray/asset-builder/tree/windoze

I am also adding windows continuous integration to asset-builder to prevent windows regressions.

https://ci.appveyor.com/project/austinpray/asset-builder

austinpray added a commit to austinpray/sage that referenced this issue Feb 26, 2015
Bumps asset-builder to 1.0.1

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

Successfully merging a pull request may close this issue.

4 participants