olympos icon indicating copy to clipboard operation
olympos copied to clipboard

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

Open nolaandy opened this issue 9 years ago • 4 comments

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? `

nolaandy avatar Feb 13 '16 02:02 nolaandy

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.

ivandoric avatar Feb 13 '16 07:02 ivandoric

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.

nolaandy avatar Feb 13 '16 17:02 nolaandy

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)

Viktoru avatar Nov 02 '17 18:11 Viktoru

@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.

ivandoric avatar Nov 10 '17 09:11 ivandoric