mirror of
https://github.com/tauri-apps/tauri-webpack.git
synced 2026-02-04 02:31:17 +01:00
chore(webpack) tauri-config is now exported with export default
This commit is contained in:
4
index.js
4
index.js
@@ -1,6 +1,8 @@
|
||||
const getTauriConfig = require('tauri/dist/helpers/tauri-config').default
|
||||
|
||||
const chainWebpack = function (chain, config) {
|
||||
const dev = process.env.NODE_ENV !== 'production'
|
||||
const tauriConfig = require('tauri/dist/helpers/tauri-config')({
|
||||
const tauriConfig = getTauriConfig({
|
||||
ctx: {
|
||||
dev,
|
||||
prod: !dev
|
||||
|
||||
Reference in New Issue
Block a user