29 lines
819 B
JavaScript
29 lines
819 B
JavaScript
// NOTE needed imports for rust wasm
|
|
// const path = require("path");
|
|
// const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
|
|
// const OptimizeWasmPlugin = require("optimize-wasm-webpack-plugin");
|
|
|
|
module.exports = {
|
|
lintOnSave: false,
|
|
configureWebpack: {
|
|
// NOTE uncomment to use rust wasm
|
|
// optimization: {
|
|
// minimizer: [new OptimizeWasmPlugin()]
|
|
// },
|
|
// plugins: [
|
|
// new WasmPackPlugin({
|
|
// crateDirectory: path.resolve(__dirname, "crate")
|
|
// })
|
|
// ]
|
|
},
|
|
pluginOptions: {
|
|
electronBuilder: {
|
|
builderOptions: {
|
|
// TODO electron-builder config https://www.electron.build/configuration/configuration
|
|
appId: "com.crimata.messenger",
|
|
productName: "Crimata Messenger"
|
|
},
|
|
preload: "src/preload.ts"
|
|
}
|
|
}
|
|
};
|