n8n/packages/editor-ui/vue.config.js
2021-12-23 11:41:46 +01:00

42 lines
960 B
JavaScript

const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
module.exports = {
chainWebpack: config => {
config.resolve.symlinks(false);
// config.plugins.delete("prefetch"); // enable when language package grows
},
// transpileDependencies: [
// // 'node_modules/quill'
// /\/node_modules\/quill\//
// ]
pluginOptions: {
webpackBundleAnalyzer: {
openAnalyzer: false,
},
i18n: {
locale: "en",
fallbackLocale: "en",
localeDir: "./src/i18n/locales",
enableInSFC: false,
},
},
configureWebpack: {
devServer: {
disableHostCheck: true,
},
plugins: [
new MonacoWebpackPlugin({ languages: ['javascript', 'json', 'typescript'] }),
],
},
css: {
loaderOptions: {
sass: {
prependData: `
@import "@/n8n-theme-variables.scss";
`,
},
},
},
publicPath: process.env.VUE_APP_PUBLIC_PATH && process.env.VUE_APP_PUBLIC_PATH !== '/%BASE_PATH%/' ? process.env.VUE_APP_PUBLIC_PATH : '/',
};