-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvue.config.js
45 lines (42 loc) · 1.16 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
const { defineConfig } = require("@vue/cli-service");
const marked = require("marked");
const renderer = new marked.Renderer();
renderer.link = function (href, title, text) {
return `<a target="_blank" href="${href}" title="${title}">${text}</a>`;
};
module.exports = defineConfig({
transpileDependencies: true,
pluginOptions: {
vuetify: {
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vuetify-loader
},
},
chainWebpack: (config) => {
config.module.rules.delete("svg"); // No change needed unless there are specific issues
},
configureWebpack: {
module: {
rules: [
{
test: /\.svg$/,
loader: "vue-html-loader", // 'vue-html-loader' is likely not needed for Vue 3; use asset modules instead
},
{
test: /\.md$/,
use: [
{
loader: "html-loader", // Update to 'html-loader' which is compatible with Webpack 5
},
{
loader: "markdown-loader",
options: {
pedantic: true,
renderer,
},
},
],
},
],
},
},
});