mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-19 08:31:35 +03:00
* chore(monorepo): cleanup * fix(tauri-cli): build errors * fix(tauri:build.rs): dont' panic if env missing * fix(finalize): setup for crates * npm publish on release actual publish currently disabled * cargo publish on release actual publish currently disabled * update PR tests for new folder structure * doesn't like the period on job name? * fail on cargo warnings otherwise we would assume green arrow is all good * green on warnings for now
38 lines
863 B
JavaScript
38 lines
863 B
JavaScript
const appPaths = require('./app-paths')
|
|
const merge = require('webpack-merge')
|
|
|
|
module.exports = cfg => {
|
|
const tauriConf = require(appPaths.resolve.app('tauri.conf.js'))(cfg.ctx)
|
|
const config = merge({
|
|
build: {
|
|
distDir: './dist'
|
|
},
|
|
ctx: {},
|
|
tauri: {
|
|
embeddedServer: {
|
|
active: true
|
|
},
|
|
bundle: {
|
|
active: true
|
|
},
|
|
whitelist: {
|
|
all: false
|
|
},
|
|
window: {
|
|
title: require(appPaths.resolve.app('package.json')).productName
|
|
},
|
|
security: {
|
|
csp: 'default-src data: filesystem: ws: http: https: \'unsafe-eval\' \'unsafe-inline\''
|
|
},
|
|
automaticStart: {
|
|
active: false,
|
|
devArgs: [],
|
|
buildArgs: []
|
|
}
|
|
}
|
|
}, tauriConf, cfg)
|
|
|
|
process.env.TAURI_DIST_DIR = appPaths.resolve.app(config.build.distDir)
|
|
return config
|
|
}
|