Skip to content

Commit

Permalink
updated gulp file and webpack file to compile webworker script
Browse files Browse the repository at this point in the history
  • Loading branch information
ritikramuka committed Oct 18, 2023
1 parent 79e8acc commit c316aba
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 101 deletions.
6 changes: 3 additions & 3 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { createRequire } from "node:module";
const require = createRequire(import.meta.url);

import webpackConfig from './webpack.config.js';
const [nodeConfig, webConfig, copresenceWorkerConfig] = webpackConfig;
const [nodeConfig, webConfig, webWorkerConfig] = webpackConfig;
const distdir = path.resolve('./dist');
const outdir = path.resolve('./out');
const packagedir = path.resolve('./package');
Expand Down Expand Up @@ -81,11 +81,11 @@ function compileWeb() {
.pipe(gulp.dest(path.resolve(`${distdir}/web`)));
}

// compile the web worker for copresence
// compile the web worker for vscode for web
function compileWorker() {
return gulp
.src(["src/web/**/*.ts"])
.pipe(gulpWebpack(copresenceWorkerConfig, webpack))
.pipe(gulpWebpack(webWorkerConfig, webpack))
.pipe(gulp.dest(path.resolve(`${distdir}/web`)));
}

Expand Down
Loading

0 comments on commit c316aba

Please sign in to comment.