Will a publisher accept a novel that has previously been (partially) self-published serially online?

That’s my question, and it’s long enough that I’m having trouble filtering search results to find answers. I mostly find information on self-publishing, but what I want to know is: if I publish the first few chapters of my novel on my blog, will this make it less likely that a traditional publisher will accept my work? I have seen it said that a publisher is less likely to accept a novel that has been previously self-published, or completely self-published, in whole or serially, online. But I’m wonder how strict most publishers are about this and how far it extends. If I just post a chapter now and again to drum up hype, will publishers still discount my novel? Thoughts, anyone?