未验证 提交 4d92b1d1 编写于 作者: A Alex Dima

Fix minor issues

上级 c95e2e4b
...@@ -392,17 +392,14 @@ gulp.task('editor-esm-bundle', ...@@ -392,17 +392,14 @@ gulp.task('editor-esm-bundle',
task.series( task.series(
task.parallel( task.parallel(
util.rimraf('out-editor-src'), util.rimraf('out-editor-src'),
util.rimraf('out-editor-build'),
util.rimraf('out-editor-esm'), util.rimraf('out-editor-esm'),
util.rimraf('out-monaco-editor-core'), util.rimraf('out-monaco-editor-core'),
util.rimraf('out-editor'), util.rimraf('out-editor-esm-bundle'),
util.rimraf('out-editor-min')
), ),
extractEditorSrcTask, extractEditorSrcTask,
createESMSourcesAndResourcesTask, createESMSourcesAndResourcesTask,
compileEditorESMTask, compileEditorESMTask,
bundleEditorESMTask, bundleEditorESMTask,
finalEditorResourcesTask
) )
); );
......
...@@ -11,7 +11,7 @@ self.MonacoEnvironment = { ...@@ -11,7 +11,7 @@ self.MonacoEnvironment = {
getWorkerUrl: function (moduleId, label) { getWorkerUrl: function (moduleId, label) {
return './editor.worker.bundle.js'; return './editor.worker.bundle.js';
} }
} };
monaco.editor.create(document.getElementById('container'), { monaco.editor.create(document.getElementById('container'), {
value: [ value: [
......
...@@ -8,8 +8,8 @@ const path = require('path'); ...@@ -8,8 +8,8 @@ const path = require('path');
module.exports = { module.exports = {
mode: 'production', mode: 'production',
entry: { entry: {
"core": './build/monaco/esm.core.js', 'core': './build/monaco/esm.core.js',
"editor.worker": './out-monaco-editor-core/esm/vs/editor/editor.worker.js' 'editor.worker': './out-monaco-editor-core/esm/vs/editor/editor.worker.js'
}, },
output: { output: {
globalObject: 'self', globalObject: 'self',
...@@ -17,24 +17,13 @@ module.exports = { ...@@ -17,24 +17,13 @@ module.exports = {
path: path.resolve(__dirname, 'dist') path: path.resolve(__dirname, 'dist')
}, },
module: { module: {
rules: [ rules: [{
{ test: /\.css$/,
test: /\.css$/, use: ['style-loader', 'css-loader']
use: ['style-loader', 'css-loader'], }, {
}, test: /\.ttf$/,
{ use: ['file-loader']
test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/, }]
use: [
{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'fonts/'
}
}
]
}
]
}, },
resolve: { resolve: {
alias: { alias: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册