Я создал плагин Vue для WordPress.Все отлично работает в моем местном окружении.Это мой public/index.html
.Я включил только этот мой плагин WordPress.Запустите npm run serve
.
Теперь у меня проблема с развертыванием на моем производственном сайте.Я сделал npm run build
и изменил плагин WordPress, чтобы указать на dist/index.html
.Но я получаю пустую страницу.
Нужно ли мне запускать сервер npm?
<!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>