-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathvue.config.js
47 lines (46 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
const { defineConfig } = require("@vue/cli-service");
const path = require("path");
const DUCKDB_DIST = path.dirname(require.resolve("@duckdb/duckdb-wasm"));
const configureAPI = require("./src/server/Configure");
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
module.exports = defineConfig({
devServer: {
onAfterSetupMiddleware: configureAPI,
historyApiFallback: false,
},
transpileDependencies: true,
pages: {
index: {
entry: "src/main.js",
title: "Kùzu Explorer",
},
},
css: {
loaderOptions: {
sass: {
// Globally load bootstrap variables and functions
additionalData: `
@import "~/node_modules/bootstrap/scss/_functions.scss";
@import "~/node_modules/bootstrap/scss/_variables.scss";
`,
},
},
},
configureWebpack: {
plugins: [
new MonacoWebpackPlugin(),
new CopyWebpackPlugin({
patterns: [
{
from: DUCKDB_DIST,
to: "js",
},
],
options: {
concurrency: 100,
},
}),
],
}
});