-
Notifications
You must be signed in to change notification settings - Fork 3
/
vue.config.js
28 lines (27 loc) · 1016 Bytes
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
module.exports = {
baseUrl: "./app/",
outputDir: "ext/options/app",
configureWebpack: {
// Chrome extensions do not support `eval` thus we chose an appropriate devtool
// see: https://webpack.js.org/configuration/devtool/
devtool: process.env.NODE_ENV == "development" ? "cheap-source-map" : false,
output: {
globalObject: "self",
filename: "[name].js"
},
plugins: [
new MonacoWebpackPlugin({
// output: "../ext/options/app",
languages: ["javascript", "typescript"]
})
],
entry: {
// "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',
}
}
};