diff --git a/examples/rollup.config.js b/examples/rollup.config.js index 1705ed02b57..b63ec8e6556 100644 --- a/examples/rollup.config.js +++ b/examples/rollup.config.js @@ -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 diff --git a/examples/src/app/code-editor.mjs b/examples/src/app/code-editor.mjs index c1e08a66fae..872d1a57907 100644 --- a/examples/src/app/code-editor.mjs +++ b/examples/src/app/code-editor.mjs @@ -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;