convergencelabs_monaco-coll.../webpack.config.js

36 lines
652 B
JavaScript
Raw Normal View History

2019-03-04 04:18:50 +00:00
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"],
2019-03-04 04:18:50 +00:00
},
plugins: [],
externals: {
"monaco-editor": {
amd: "vs/editor/editor.main",
commonjs: "monaco-editor",
commonjs2: "monaco-editor",
root: "monaco"
}
}
};