2021-10-23 08:38:46 -07:00
|
|
|
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
|
|
|
|
|
2019-06-23 03:35:23 -07:00
|
|
|
module.exports = {
|
2021-11-09 00:59:48 -08:00
|
|
|
chainWebpack: config => {
|
|
|
|
config.resolve.symlinks(false);
|
|
|
|
// config.plugins.delete("prefetch"); // enable when language package grows
|
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
// transpileDependencies: [
|
|
|
|
// // 'node_modules/quill'
|
|
|
|
// /\/node_modules\/quill\//
|
|
|
|
// ]
|
|
|
|
pluginOptions: {
|
|
|
|
webpackBundleAnalyzer: {
|
|
|
|
openAnalyzer: false,
|
|
|
|
},
|
2021-11-09 00:59:48 -08:00
|
|
|
i18n: {
|
|
|
|
locale: "en",
|
|
|
|
fallbackLocale: "en",
|
|
|
|
localeDir: "./src/i18n/locales",
|
|
|
|
enableInSFC: false,
|
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
configureWebpack: {
|
2020-10-28 15:14:09 -07:00
|
|
|
devServer: {
|
|
|
|
disableHostCheck: true,
|
|
|
|
},
|
2021-10-23 08:38:46 -07:00
|
|
|
plugins: [
|
2021-12-23 02:41:46 -08:00
|
|
|
new MonacoWebpackPlugin({ languages: ['javascript', 'json', 'typescript'] }),
|
2021-10-23 08:38:46 -07:00
|
|
|
],
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
css: {
|
|
|
|
loaderOptions: {
|
|
|
|
sass: {
|
2019-12-29 13:02:21 -08:00
|
|
|
prependData: `
|
2019-06-23 03:35:23 -07:00
|
|
|
@import "@/n8n-theme-variables.scss";
|
|
|
|
`,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-02-24 08:17:24 -08:00
|
|
|
publicPath: process.env.VUE_APP_PUBLIC_PATH ? process.env.VUE_APP_PUBLIC_PATH : '/',
|
2019-06-23 03:35:23 -07:00
|
|
|
};
|