> On Dec 15, 2019, at 9:54 AM, fugee ohu <fugee...@gmail.com> wrote:
> 
> How do I ensure that webpacker doesn't know anything about my favicon I 
> removed the favicon lines in application.js and renamed favicons.js to 
> favicons.js.renamed and than ran `rake webpacker:compile` (not that i know 
> what that's supposed to be for) but still the app is complaining favicon.ico 
> can't be found in manifest.js

I have no idea. This is not something I've encountered in my own apps, perhaps 
there is another manifest somewhere that is requiring it, since it was once 
added and attempted to compile.

I've just updated to Rails 6.0.2, in Ruby 2.6.5. Run rails new test-6, and 
after a mighty pause for gem compilation and so forth, 'Webpacker successfully 
installed :trumpet: :cake:' appears on my screen.

rails g scaffold Foo bar baz boo

And now, this:

rake webpacker:compile
Compiling...
Compiled all packs in /Users/waltd/Documents/sandbox/test-6/public/packs
Hash: 60efe71c97239d74f7f6
Version: webpack 4.41.2
Time: 3521ms
Built at: 12/15/2019 12:45:40 PM
                                        Asset       Size  Chunks                
         Chunk Names
       js/application-6297f63bc162c780afc3.js   69.2 KiB       0  [emitted] 
[immutable]  application
    js/application-6297f63bc162c780afc3.js.br   15.3 KiB          [emitted]     
         
    js/application-6297f63bc162c780afc3.js.gz   17.7 KiB          [emitted]     
         
   js/application-6297f63bc162c780afc3.js.map    205 KiB       0  [emitted] 
[dev]        application
js/application-6297f63bc162c780afc3.js.map.br   43.9 KiB          [emitted]     
         
js/application-6297f63bc162c780afc3.js.map.gz     51 KiB          [emitted]     
         
                                manifest.json  364 bytes          [emitted]     
         
                             manifest.json.br  127 bytes          [emitted]     
         
                             manifest.json.gz  142 bytes          [emitted]     
         
Entrypoint application = js/application-6297f63bc162c780afc3.js 
js/application-6297f63bc162c780afc3.js.map
[0] (webpack)/buildin/module.js 552 bytes {0} [built]
[1] ./app/javascript/packs/application.js 742 bytes {0} [built]
[5] ./app/javascript/channels/index.js 205 bytes {0} [built]
[6] ./app/javascript/channels sync _channel\.js$ 160 bytes {0} [built]
    + 3 hidden modules

No mention of missing anything, no mention of favicon in the context of JS at 
all.

No mention of favicon in the page head, either. So I remedied that:

<link rel="icon" href="/favicon.ico">

And running this in rails server again gives me no issues with JS and favicon.

So clearly, your mileage varies, and that means that something you did with 
webpacker differs from what I did with webpacker. Since I did as little as 
possible, maybe you did too much one time, and it got stuck that way. Nuke the 
whole thing from orbit, and try again somewhere else, as Ripley might say.

Walter


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/65DE6C93-4538-4731-ADA0-CE837265CAAF%40wdstudio.com.

Reply via email to