No need for worker proxying in website

pull/237/head
Alex Dima 2016-08-27 11:21:32 +02:00
parent f9905fad97
commit 196f355660
6 changed files with 1 additions and 26 deletions

View File

@ -343,7 +343,7 @@ gulp.task('website', ['clean-website', 'playground-samples'], function() {
return ( return (
gulp.src('website/**/*', { dot: true }) gulp.src('website/**/*', { dot: true })
.pipe(es.through(function(data) { .pipe(es.through(function(data) {
if (!data.contents || !/\.(js|html)$/.test(data.path)) { if (!data.contents || !/\.(html)$/.test(data.path)) {
return this.emit('data', data); return this.emit('data', data);
} }

View File

@ -142,11 +142,6 @@
<script type="text/javascript" src="../release/min/vs/loader.js"></script> <script type="text/javascript" src="../release/min/vs/loader.js"></script>
<script type="text/javascript"> <script type="text/javascript">
window.MonacoEnvironment = {
getWorkerUrl: function(workerId, label) {
return 'worker-loader-proxy.js';
}
};
require.config({ require.config({
paths: { paths: {
vs: '../release/min/vs' vs: '../release/min/vs'

View File

@ -4297,11 +4297,6 @@ return {
<script type="text/javascript" src="../release/min/vs/loader.js"></script> <script type="text/javascript" src="../release/min/vs/loader.js"></script>
<script type="text/javascript"> <script type="text/javascript">
window.MonacoEnvironment = {
getWorkerUrl: function(workerId, label) {
return 'worker-loader-proxy.js';
}
};
require.config({ require.config({
paths: { paths: {
vs: "../release/min/vs" vs: "../release/min/vs"

View File

@ -67,11 +67,6 @@
<script type="text/javascript" src="../release/min/vs/loader.js"></script> <script type="text/javascript" src="../release/min/vs/loader.js"></script>
<script type="text/javascript"> <script type="text/javascript">
window.MonacoEnvironment = {
getWorkerUrl: function(workerId, label) {
return 'worker-loader-proxy.js';
}
};
require.config({ require.config({
paths: { paths: {
vs: "../release/min/vs" vs: "../release/min/vs"

View File

@ -22,12 +22,6 @@
}; };
}; };
window.MonacoEnvironment = {
getWorkerUrl: function(workerId, label) {
return '../worker-loader-proxy.js';
}
};
require.config({ require.config({
paths: { paths: {
vs: "../../release/min/vs" vs: "../../release/min/vs"

View File

@ -1,4 +0,0 @@
self.MonacoEnvironment = {
baseUrl: '../release/min/'
};
importScripts('../release/min/vs/base/worker/workerMain.js');