소스 검색

Update route to files for esbuild.

Lee Morgan 2 년 전
부모
커밋
5db601ea03
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app.js

+ 2 - 2
app.js

@@ -31,10 +31,10 @@ let cssOptions = {
 };
 
 let esbuildOptions = {
-    entryPoints: ["./views/dashboardPage/js/dashboard.js"],
+    entryPoints: [`${__dirname}/views/dashboardPage/js/dashboard.js`],
     bundle: true,
     minify: false,
-    outfile: "./views/dashboardPage/bundle.js",
+    outfile: `${__dirname}/views/dashboardPage/bundle.js`
 };
 
 app.use(express.static(__dirname + "/views"));