<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<noscript>
<strong
>We apologize, but <%= htmlWebpackPlugin.options.title %> requires JavaScript to function properly. Please enable it to continue.</strong
>
</noscript>
<div id="app" thisIsAProp="This is what I need"></div>
<!-- built files will be auto injected -->
</body>
</html>
In my main.js file, the application is mounted on #app. To access the properties of the <div id="app">
element in my App.js file, I attempted using web-components which worked for a basic app. However, an additional requirement is that I must be able to override the CSS variables within the parent web page. When creating web components, Vue generates them with a shadow-dom. Is there a more effective method to retrieve values from the vue mount element?