mirror of
https://github.com/tauri-apps/tauri-webpack.git
synced 2026-02-04 02:31:17 +01:00
Merge pull request #8 from tauri-apps/feature/tauri-ts
chore(webpack) adjust tauri-config require path
This commit is contained in:
4
index.js
4
index.js
@@ -1,6 +1,6 @@
|
||||
const chainWebpack = function (chain, config) {
|
||||
const dev = process.env.NODE_ENV !== 'production'
|
||||
const tauriConfig = require('tauri/helpers/tauri-config')({
|
||||
const tauriConfig = require('tauri/dist/helpers/tauri-config')({
|
||||
ctx: {
|
||||
dev,
|
||||
prod: !dev
|
||||
@@ -28,5 +28,5 @@ module.exports.config = function (config) {
|
||||
const WebpackChain = require('webpack-chain')
|
||||
const chain = new WebpackChain()
|
||||
chainWebpack(chain, config)
|
||||
return chain.toString()
|
||||
return chain.toConfig()
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/tauri-apps/tauri-webpack#readme",
|
||||
"dependencies": {
|
||||
"tauri": "^0.1.9",
|
||||
"tauri": "^0.3.0",
|
||||
"webpack-chain": "^6.2.0",
|
||||
"webpack-shell-plugin": "0.5.0"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user