forked from pocketnetteam/bastyon-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
67 lines (61 loc) · 1.23 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
var prependcssvars = `@import "@/styles/variables/common.sass"; @import "@/styles/mixins/common.sass";`;
const path = require("path");
module.exports = {
devServer: {
open: process.platform === "darwin",
host: "0.0.0.0",
port: 8080, // CHANGE YOUR PORT HERE!
https: true,
hotOnly: false,
},
publicPath: "/",
lintOnSave: false,
css: {
loaderOptions: {
sass: {
prependData: prependcssvars,
},
},
},
runtimeCompiler: true,
transpileDependencies: ["rxjs-interop", "standardized-audio-context"],
pluginOptions: {
webpackBundleAnalyzer: {
openAnalyzer: false,
analyzerMode: "disabled",
},
},
configureWebpack: {
resolve: {
extensions: [".js", ".ts"],
alias: {
"standardized-audio-context": path.resolve(
"node_modules/standardized-audio-context/build/es5/bundle.js"
),
},
},
output: {
pathinfo: false,
},
module: {
rules: [
{
loader: "babel-loader",
test: "/.(js)$/",
include: [
path.resolve("node_modules/rxjs-interop"),
path.resolve("node_modules/standardized-audio-context"),
],
},
{
test: /\.(ts|tsx)?$/,
use: "ts-loader",
},
{
test: /\.wasm$/,
loaders: ["wasm-loader"],
},
],
},
},
};