浏览代码

Поправки путей

Book Pauk 6 年之前
父节点
当前提交
765dd1de06
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      .gitignore
  2. 2 2
      build/webpack.base.config.js
  3. 1 1
      server/public/index.html

+ 1 - 1
.gitignore

@@ -1,6 +1,6 @@
 /node_modules
 /node_modules
 /server/data
 /server/data
 /server/log
 /server/log
-/server/public/bundle.js
+/server/public/app
 /dist/win
 /dist/win
 /dist/linux
 /dist/linux

+ 2 - 2
build/webpack.base.config.js

@@ -5,8 +5,8 @@ const VueLoaderPlugin = require('vue-loader/lib/plugin');
 module.exports = {
 module.exports = {
     entry: [path.resolve(__dirname, "../client/main.js")],
     entry: [path.resolve(__dirname, "../client/main.js")],
     output: {
     output: {
-        path: path.resolve(__dirname, "..", "server", "public"),
-        publicPath: "/",
+        path: path.resolve(__dirname, "../server/public/app"),
+        publicPath: "/app",
         filename: "bundle.js"
         filename: "bundle.js"
     },
     },
 
 

+ 1 - 1
server/public/index.html

@@ -7,6 +7,6 @@
   </head>
   </head>
   <body>
   <body>
     <div id="app"></div>
     <div id="app"></div>
-    <script type=text/javascript src=/bundle.js></script>
+    <script type="text/javascript" src="/app/bundle.js"></script>
   </body>
   </body>
 </html>
 </html>