I have created a Vue plugin for wordpress. Everything works fine in my local environment. This is my public/index.html
. I only included this my wordpress plugin. Run the npm run serve
.
Now I have a problem to deploy to my production site. I did npm run build
and changed the wordpress plugin to point to dist/index.html
. But I get a blank page.
Do I still need to run a npm server?
<!DOCTYPE html>
<html lang=" en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
<title>standing order</title>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
<script type="text/javascript" src="http://localhost:8083/app.js?ver=4.9.8"></script>
</body>
</html>