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

Any info on why olympos.min.js won't load? #1

Open
nolaandy opened this issue Feb 13, 2016 · 4 comments
Open

Any info on why olympos.min.js won't load? #1

nolaandy opened this issue Feb 13, 2016 · 4 comments

Comments

@nolaandy
Copy link

Gulp is reading the changes of olympos.min.js but when I visit the site and inspect the resources I only see these files in js:
jquery, jquery-migrate, livereload, and wp-emoji-release.

The sass is compiling properly.

I linked directly to olympos.min.js and it loaded in inspector. The javascript doesn't appear to be compiling though because the code I put in main.js does not appear when I ctrl+f my custom code.

This is the top of my functions.php Any ideas on how I can track this issue down?
`

@ivandoric
Copy link
Owner

Hmm that is weird. olympos.min.js doesn't appear in resources for me as well. But it is there. If you view the source you will see it. It is linking to the file, I just don't understand why Chrome doesn't pick it in the resources.

I will check that out. Thanks.

@nolaandy
Copy link
Author

Unfortunately it isn't visible for me when I view source. I can confirm it's not writing to the site with this basic jquery function:

$("body").click(function() {
$(this).toggleClass('clicked');
});

It works when I put it in my custom .js file I am calling in header.php
It doesn't work though when I add the same code in main.js, even though in grunt I see this:

[11:12:51] Starting 'uglify'...
[11:12:51] Finished 'uglify' after 787 µs
[11:12:52] c:\wamp\www\wp_dev_andy\content\themes\olympos\js\olympos.min.js relo
aded.

Thanks for the reply.

@Viktoru
Copy link

Viktoru commented Nov 2, 2017

Error: Cannot find module 'gulp-livereload'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)

@ivandoric
Copy link
Owner

@Viktoru try doing npm install --save-dev gulp-livereload But I suggest you not use livereload at all. Maybe better to use Browsersync. I will have to update this repo soon.

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