Update Olm
This commit is contained in:
parent
7704e72d2d
commit
e1797411c6
6 changed files with 1036 additions and 945 deletions
|
|
@ -1,33 +1,35 @@
|
|||
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
||||
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
"transpileDependencies": [
|
||||
"vuetify"
|
||||
],
|
||||
transpileDependencies: ["vuetify"],
|
||||
|
||||
publicPath: process.env.NODE_ENV === 'production'
|
||||
? './'
|
||||
: './',
|
||||
publicPath: process.env.NODE_ENV === "production" ? "./" : "./",
|
||||
|
||||
chainWebpack: config => {
|
||||
config.plugin('html').tap(args => {
|
||||
chainWebpack: (config) => {
|
||||
config.plugin("html").tap((args) => {
|
||||
var c = require("./src/assets/config.json");
|
||||
args[0].title = c.appName;
|
||||
return args;
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
configureWebpack: {
|
||||
devtool: 'source-map',
|
||||
devtool: "source-map",
|
||||
plugins: [
|
||||
new CopyWebpackPlugin([{
|
||||
from: "./src/assets/config.json",
|
||||
to: "./",
|
||||
}])
|
||||
]
|
||||
new CopyWebpackPlugin([
|
||||
{
|
||||
from: "./src/assets/config.json",
|
||||
to: "./",
|
||||
},
|
||||
{
|
||||
from: "./node_modules/@matrix-org/olm/olm.wasm",
|
||||
to: "./js/olm.wasm",
|
||||
},
|
||||
]),
|
||||
],
|
||||
},
|
||||
|
||||
devServer: {
|
||||
//https: true
|
||||
//https: true,
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue