mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 06:17:18 +00:00
Fix minor issues
This commit is contained in:
parent
c95e2e4bf2
commit
4d92b1d1f8
|
@ -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
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ self.MonacoEnvironment = {
|
|||
getWorkerUrl: function (moduleId, label) {
|
||||
return './editor.worker.bundle.js';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
monaco.editor.create(document.getElementById('container'), {
|
||||
value: [
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue