Skip to content

Commit 79905c0

Browse files
committed
Don't include monaco in SW
1 parent ea751de commit 79905c0

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

Gulpfile.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,17 @@ gulp.task('homepage', () =>
2929
gulp.src('packages/homepage/public/**/*').pipe(gulp.dest('www'))
3030
);
3131

32+
gulp.task('monaco', () =>
33+
gulp
34+
.src('standalone-packages/monaco-editor/release/min/vs/**/*')
35+
.pipe(gulp.dest('www/public/13/vs'))
36+
);
37+
3238
gulp.task('statics', () =>
3339
gulp.src('packages/app/public/**/*').pipe(gulp.dest('www'))
3440
);
3541

36-
gulp.task('default', ['app', 'homepage', 'statics']);
42+
gulp.task('default', ['app', 'homepage', 'statics', 'monaco']);
3743

3844
gulp.task('clean-vscode', rimraf('standalone-packages/monaco-editor-core'));
3945

packages/app/config/webpack.common.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -442,23 +442,11 @@ module.exports = {
442442
// Make the monaco editor work
443443
new CopyWebpackPlugin(
444444
[
445-
// Our own custom version of monaco
446-
{
447-
from: __DEV__
448-
? '../../standalone-packages/monaco-editor/release/dev/vs'
449-
: '../../standalone-packages/monaco-editor/release/min/vs',
450-
to: 'public/13/vs',
451-
force: true,
452-
},
453445
{
454446
from: '../../standalone-packages/vscode-editor/release/min/vs',
455447
to: 'public/vscode1/vs',
456448
force: true,
457449
},
458-
__PROD__ && {
459-
from: '../../node_modules/monaco-editor/min-maps',
460-
to: 'public/min-maps',
461-
},
462450
{
463451
from: '../../node_modules/onigasm/lib/onigasm.wasm',
464452
to: 'public/onigasm/2.2.1/onigasm.wasm',

0 commit comments

Comments
 (0)