1
0
mirror of https://github.com/PanJiaChen/electron-vue-admin.git synced 2025-04-06 03:57:57 +08:00

Merge 8923a66c8fe62727903abd62654e455ee8992cad into ec3afcc232e7db300a66932d17ded96495c76c77

This commit is contained in:
huangqingpeng 2019-08-12 07:10:47 +00:00 committed by GitHub
commit c667dfa6fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 33 deletions

View File

@ -60,8 +60,7 @@ function startRenderer () {
}) })
const server = new WebpackDevServer( const server = new WebpackDevServer(
compiler, compiler, {
{
contentBase: path.join(__dirname, '../'), contentBase: path.join(__dirname, '../'),
quiet: true, quiet: true,
before(app, ctx) { before(app, ctx) {

View File

0
dist/web/.gitkeep vendored
View File

View File

@ -1,15 +1,18 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>electron-vue-admin</title> <title>electron-vue-admin</title>
<% if (htmlWebpackPlugin.options.nodeModules) { %> <% if (htmlWebpackPlugin.options.nodeModules) { %>
<!-- Add `node_modules/` to global paths so `require` works properly in development --> <!-- Add `node_modules/` to global paths so `require` works properly in development -->
<script> <script>
require('module').globalPaths.push('<%= htmlWebpackPlugin.options.nodeModules.replace(/\\/g, '\\\\') %>') require('module').globalPaths.push('<%= htmlWebpackPlugin.options.nodeModules.replace(/\\/g, '\\\\
') %>')
</script> </script>
<% } %> <% } %>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
<!-- Set `__static` path to static files in production --> <!-- Set `__static` path to static files in production -->
@ -19,4 +22,5 @@
<!-- webpack builds are automatically injected --> <!-- webpack builds are automatically injected -->
</body> </body>
</html> </html>