Browse Source

move to cloudflare cdn

Raanan Weber 5 năm trước cách đây
mục cha
commit
cffcacfc18
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      Playground/index.html
  2. 1 1
      Playground/js/monacoCreator.js

+ 1 - 1
Playground/index.html

@@ -431,7 +431,7 @@
         </script>
 
         <!-- Monaco -->
-        <script src="/node_modules/monaco-editor/min/vs/loader.js"></script>
+        <script src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.18.1/min/vs/loader.js"></script>
 
         <!-- jQuery -->
         <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

+ 1 - 1
Playground/js/monacoCreator.js

@@ -71,7 +71,7 @@ class MonacoCreator {
 
         this.setupDefinitionWorker(libContent);
 
-        require.config({ paths: { 'vs': '/node_modules/monaco-editor/min/vs' } });
+        require.config({ paths: { 'vs': 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.18.1/min/vs' } });
 
         require(['vs/editor/editor.main'], () => {
             this.setupMonacoCompilationPipeline(libContent);