Electron Vue 新建项目报错 ReferenceError: process is not defined

 

 

 1 <body>
 2   <div id="app"></div>
 3   <!-- Set `__static` path to static files in production -->
 4   <% if (!process.browser) { %>
 5   <script>
 6     if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
 7   </script>
 8   <% } %>
 9 
10   <!-- webpack builds are automatically injected -->
11 </body>
 1 <body>
 2   <div id="app"></div>
 3   <!-- Set `__static` path to static files in production -->
 4   <%  if (!require('process').browser) { %>
 5   <script>
 6     if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
 7   </script>
 8   <% } %>
 9 
10   <!-- webpack builds are automatically injected -->
11 </body>

 

posted @ 2020-07-01 10:28  doubletcjs  阅读(1278)  评论(0编辑  收藏  举报