30 lines
687 B
JavaScript
30 lines
687 B
JavaScript
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
entry: {
|
||
|
app: './index.js',
|
||
|
'editor.worker': 'monaco-editor/esm/vs/editor/editor.worker.js',
|
||
|
'json.worker': 'monaco-editor/esm/vs/language/json/json.worker',
|
||
|
'css.worker': 'monaco-editor/esm/vs/language/css/css.worker',
|
||
|
'html.worker': 'monaco-editor/esm/vs/language/html/html.worker',
|
||
|
'ts.worker': 'monaco-editor/esm/vs/language/typescript/ts.worker'
|
||
|
},
|
||
|
output: {
|
||
|
globalObject: 'self',
|
||
|
filename: '[name].bundle.js',
|
||
|
path: path.resolve(__dirname, 'dist')
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.css$/,
|
||
|
use: ['style-loader', 'css-loader']
|
||
|
},
|
||
|
{
|
||
|
test: /\.ttf$/,
|
||
|
use: ['file-loader']
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
};
|