-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
36 lines (31 loc) · 931 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
const path = require("path");
const dist = path.resolve(__dirname, "dist");
const CopyPlugin = require("copy-webpack-plugin");
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
module.exports = {
devServer: {
contentBase: dist,
useLocalIp: true,
sockHost: "10.0.42.179",
https: true,
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': '*'
}
},
// publicPath: '/static/',
chainWebpack: config => {
config
.plugin('wasmpack')
.use(WasmPackPlugin, [
{
crateDirectory: __dirname,
//extraArgs: "--out-name index"
}]);
config
.plugin('copy')
.use(CopyPlugin, [[path.resolve(__dirname, "static")]]);
//config
// .plugin('workspace')
},
}