Results 1 to 2 of 2

Thread: "npm run build" modifies index.html

  1. #1

    Join Date
    Nov 2010
    Location
    Canton, GA, USA
    Posts
    164

    Default "npm run build" modifies index.html

    I originally posted in Q&A but got no "A" in 10 days so I'm re-posting here...

    Running "npm run build" in a newly build 7.0.0-CE project is unexpectedly modifying the index.html in the top-level directory of the project. A <base href="/"> tag is being inserted near the top and a <script ...></script> is being appended at the end. Subsequent builds add the script tag again to the bottom every time. This is causing me issues in my dev and build systems.

    Is there a way to have the webpack logic not modify that file? I wonder what else it's modifying...

  2. #2

    Join Date
    Nov 2010
    Location
    Canton, GA, USA
    Posts
    164

    Default

    I guess these forums are dead?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •