Jelajahi Sumber

Поправки багов

Book Pauk 6 tahun lalu
induk
melakukan
9f80d7ef9b
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      build/webpack.base.config.js
  2. 1 1
      package.json

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

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

+ 1 - 1
package.json

@@ -11,7 +11,7 @@
     "build:win": "npm run build:client && pkg -t latest-win-x64 -o dist/win/liberama .",
     "build:win": "npm run build:client && pkg -t latest-win-x64 -o dist/win/liberama .",
     "lint": "eslint --ext=.js,.vue client server"
     "lint": "eslint --ext=.js,.vue client server"
   },
   },
-  "bin": "server/index-prod.js",
+  "bin": "server/index.js",
   "pkg": {
   "pkg": {
     "scripts": "server/config/*.js"
     "scripts": "server/config/*.js"
   },
   },