-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.ts
34 lines (33 loc) · 955 Bytes
/
vue.config.ts
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
import path from "path";
module.exports = {
configureWebpack: {
resolve: {
extensions: [".ts", ".tsx", ".vue", ".json"],
alias: {
"@": path.resolve(__dirname, "./src"),
"@views": path.resolve(__dirname, "./src/views"),
"@atoms": path.resolve(__dirname, "./src/components/atoms"),
"@molecules": path.resolve(__dirname, "./src/components/molecules"),
"@organisms": path.resolve(__dirname, "./src/components/organisms"),
"@components": path.resolve(__dirname, "./src/components"),
"@assets": path.resolve(__dirname, "./src/assets"),
},
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: "ts-loader",
exclude: /node_modules/,
options: {
appendTsSuffixTo: [/\.vue$/],
},
},
{
test: /\.vue$/,
loader: ["style", "css", "sass"],
},
],
},
},
};