瀏覽代碼

Quote paths to avoid labextension build errors with paths with spaces

goanpeca 4 年之前
父節點
當前提交
abc9e89c58
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      builder/src/build-labextension.ts

+ 1 - 1
builder/src/build-labextension.ts

@@ -36,7 +36,7 @@ commander
 
     const webpack = require.resolve('webpack-cli/bin/cli.js');
     const config = path.join(__dirname, 'webpack.config.ext.js');
-    let cmdText = `node ${webpack} --config ${config} --mode ${mode}`;
+    let cmdText = `node "${webpack}" --config "${config}" --mode ${mode}`;
     if (cmd.watch) {
       cmdText += ' --watch';
     }