-
Notifications
You must be signed in to change notification settings - Fork 29
/
vue.config.js
48 lines (45 loc) · 1.15 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
const path = require('path');
const plugins = [];
if (process.env.NODE_ENV !== "production") {
// eslint-disable-next-line global-require
const MonocoEditorPlugin = require("monaco-editor-webpack-plugin");
plugins.push(
new MonocoEditorPlugin({
languages: ["javascript", "typescript", "css", "json"]
})
);
}
module.exports = {
lintOnSave: false,
runtimeCompiler: true,
transpileDependencies: ["vuetable-2"],
configureWebpack: {
plugins,
resolve: {
modules: [path.resolve(__dirname, "node_modules"), "node_modules"],
symlinks: false,
alias: {
"@processmaker/vue-form-elements$":
process.env.NODE_ENV === "development"
? "@processmaker/vue-form-elements/src/components"
: "@processmaker/vue-form-elements"
}
},
externals:
process.env.NODE_ENV === "production"
? [
'vue-monaco',
'monaco-editor',
'vue-deepset',
/^@fortawesome\/.+$/,
'vue',
'vuex',
/^bootstrap\/.+$/,
/^@processmaker\/.+$/,
'i18next',
'@panter/vue-i18next',
'validatorjs',
"SharedComponents"
] : [],
}
};