Skip to content

Commit

Permalink
[Fix examples] Change the path to make sure it deploys (#6017)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky committed Jan 29, 2024
1 parent c318cb3 commit 2b8f220
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ const staticFiles = [
{ src: '../scripts', dest: 'dist/static/scripts/' },
{ src: '../build/playcanvas.d.ts', dest: 'dist/playcanvas.d.ts' },
{ src: './node_modules/@playcanvas/observer/dist/index.js', dest: 'dist/iframe/playcanvas-observer.js' },
{ src: './node_modules/monaco-editor/min/vs', dest: 'dist/node_modules/monaco-editor/min/vs' }

// Note: destination folder is 'modules' as 'node_modules' are automatically excluded by git pages
{ src: './node_modules/monaco-editor/min/vs', dest: 'dist/modules/monaco-editor/min/vs' }
];

// ^ = beginning of line
Expand Down
2 changes: 1 addition & 1 deletion examples/src/app/code-editor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import MonacoEditor, { loader } from "@monaco-editor/react";
import { iframeHotReload, iframeRequestFiles, iframeResize } from './iframeUtils.mjs';
import { removeRedundantSpaces } from './helpers/strings.mjs';

loader.config({ paths: { vs: './node_modules/monaco-editor/min/vs' } });
loader.config({ paths: { vs: './modules/monaco-editor/min/vs' } });

function getShowMinimap() {
let showMinimap = true;
Expand Down

0 comments on commit 2b8f220

Please sign in to comment.