Every time I execute npm run build
, it creates a dist folder containing my app - all well and good, but...
Issue at Hand:
Upon opening my index.html
, I find the
<!DOCTYPE>, <head>, <body>
tags, whereas in my case, all I really need is the <div id="app">
with the CSS and JS files.
Query:
Is there a way to omit the unnecessary tags that are being generated, such as
<!DOCTYPE>, <body>, <head>
in my specific scenario?
When I run npm run build
, I would like the resulting index.html
to look like this:
<link href=/testing/path/css/app.6878f4f8.css rel=preload as=style>
<link href=/testing/path/js/app.457dc9d3.js rel=preload as=script>
<link href=/testing/path/js/chunk-vendors.a0cfb1f1.js rel=preload as=script>
<link href=/testing/path/css/app.6878f4f8.css rel=stylesheet>
<div id=app>
</div>
<script src=/testing/path/js/chunk-vendors.a0cfb1f1.js></script>
<script src=/testing/path/js/app.457dc9d3.js></script>
Otherwise, I have to manually edit the file every time.