-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathvue.config.js
48 lines (45 loc) · 869 Bytes
/
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 CopyWebpackPlugin = require('copy-webpack-plugin');
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
outputDir: 'res/story-map',
configureWebpack: {
plugins: [
new CopyWebpackPlugin({
patterns: [
{
from: './story-map/public',
globOptions: {
ignore: [
"**/index.html"
]
}
}
]
}),
]
},
chainWebpack: (config) => {
config
.entry("app")
.clear()
.add("./story-map/src/main.ts")
.end();
config
.resolve.alias.set("@", path.join(__dirname, "./story-map/src"));
config
.plugin('html')
.tap((args) => {
const param = args[0]
param.template = path.join(__dirname, "./story-map/public/index.html");
return [param];
});
},
css: {
loaderOptions: {
css: {
url: false
}
}
},
})