You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
652 B
36 lines
652 B
module.exports = {
|
|
mode: 'production',
|
|
optimization: {
|
|
minimize: false
|
|
},
|
|
entry: "./src/ts/index.ts",
|
|
output: {
|
|
path: __dirname + "dist/lib",
|
|
library: "MonacoCollabExt",
|
|
libraryTarget: "umd",
|
|
umdNamedDefine: true,
|
|
filename: "monaco-collab-ext.js"
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/
|
|
}
|
|
]
|
|
},
|
|
resolve: {
|
|
extensions: [".ts"],
|
|
},
|
|
plugins: [],
|
|
externals: {
|
|
"monaco-editor": {
|
|
amd: "vs/editor/editor.main",
|
|
commonjs: "monaco-editor",
|
|
commonjs2: "monaco-editor",
|
|
root: "monaco"
|
|
}
|
|
}
|
|
};
|