Fix minor issues

This commit is contained in:
Alex Dima 2020-02-22 16:02:23 +01:00
parent c95e2e4bf2
commit 4d92b1d1f8
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
3 changed files with 11 additions and 25 deletions

View file

@ -392,17 +392,14 @@ gulp.task('editor-esm-bundle',
task.series(
task.parallel(
util.rimraf('out-editor-src'),
util.rimraf('out-editor-build'),
util.rimraf('out-editor-esm'),
util.rimraf('out-monaco-editor-core'),
util.rimraf('out-editor'),
util.rimraf('out-editor-min')
util.rimraf('out-editor-esm-bundle'),
),
extractEditorSrcTask,
createESMSourcesAndResourcesTask,
compileEditorESMTask,
bundleEditorESMTask,
finalEditorResourcesTask
)
);

View file

@ -11,7 +11,7 @@ self.MonacoEnvironment = {
getWorkerUrl: function (moduleId, label) {
return './editor.worker.bundle.js';
}
}
};
monaco.editor.create(document.getElementById('container'), {
value: [

View file

@ -8,8 +8,8 @@ const path = require('path');
module.exports = {
mode: 'production',
entry: {
"core": './build/monaco/esm.core.js',
"editor.worker": './out-monaco-editor-core/esm/vs/editor/editor.worker.js'
'core': './build/monaco/esm.core.js',
'editor.worker': './out-monaco-editor-core/esm/vs/editor/editor.worker.js'
},
output: {
globalObject: 'self',
@ -17,24 +17,13 @@ module.exports = {
path: path.resolve(__dirname, 'dist')
},
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
{
test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
use: [
{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'fonts/'
}
}
]
}
]
rules: [{
test: /\.css$/,
use: ['style-loader', 'css-loader']
}, {
test: /\.ttf$/,
use: ['file-loader']
}]
},
resolve: {
alias: {