mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 07:53:16 +00:00
This configuration works but patch-package doesn't take (yt)
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"postinstall": "patch-package"
|
"postinstall": "patch-package --error-on-fail"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"axios": "^1.6.8",
|
"axios": "^1.6.8",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* vite.config.js
|
* vite.config.js
|
||||||
* Copyright (c) 2023 james@firefly-iii.org
|
* Copyright (c) 2024 james@firefly-iii.org.
|
||||||
*
|
*
|
||||||
* This file is part of Firefly III (https://github.com/firefly-iii).
|
* This file is part of Firefly III (https://github.com/firefly-iii).
|
||||||
*
|
*
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
* GNU Affero General Public License for more details.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see https://www.gnu.org/licenses/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {defineConfig} from 'vite';
|
import {defineConfig} from 'vite';
|
||||||
@@ -43,26 +43,26 @@ export default defineConfig({
|
|||||||
laravel({
|
laravel({
|
||||||
input: [
|
input: [
|
||||||
// css
|
// css
|
||||||
'resources/assets/v2/sass/app.scss',
|
'src/sass/app.scss',
|
||||||
|
|
||||||
// dashboard
|
// dashboard
|
||||||
'resources/assets/v2/pages/dashboard/dashboard.js',
|
'src/pages/dashboard/dashboard.js',
|
||||||
|
|
||||||
// accounts
|
// accounts
|
||||||
'resources/assets/v2/pages/accounts/index.js',
|
'src/pages/accounts/index.js',
|
||||||
|
|
||||||
// administrations
|
// administrations
|
||||||
'resources/assets/v2/pages/administrations/index.js',
|
'src/pages/administrations/index.js',
|
||||||
'resources/assets/v2/pages/administrations/create.js',
|
'src/pages/administrations/create.js',
|
||||||
'resources/assets/v2/pages/administrations/edit.js',
|
'src/pages/administrations/edit.js',
|
||||||
|
|
||||||
// transactions
|
// transactions
|
||||||
'resources/assets/v2/pages/transactions/create.js',
|
'src/pages/transactions/create.js',
|
||||||
'resources/assets/v2/pages/transactions/edit.js',
|
'src/pages/transactions/edit.js',
|
||||||
'resources/assets/v2/pages/transactions/show.js',
|
'src/pages/transactions/show.js',
|
||||||
'resources/assets/v2/pages/transactions/index.js',
|
'src/pages/transactions/index.js',
|
||||||
|
|
||||||
],
|
],
|
||||||
|
publicDirectory: '../../../public',
|
||||||
refresh: true,
|
refresh: true,
|
||||||
}),
|
}),
|
||||||
//manifestSRI(),
|
//manifestSRI(),
|
||||||
|
@@ -1,47 +0,0 @@
|
|||||||
/*
|
|
||||||
* webpack.mix.js
|
|
||||||
* Copyright (c) 2020 james@firefly-iii.org
|
|
||||||
*
|
|
||||||
* This file is part of Firefly III (https://github.com/firefly-iii).
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as
|
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
|
||||||
* License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
let mix = require('laravel-mix');
|
|
||||||
|
|
||||||
mix.webpackConfig({
|
|
||||||
resolve: {
|
|
||||||
alias: {
|
|
||||||
'vue$': 'vue/dist/vue.runtime.common.js'
|
|
||||||
},
|
|
||||||
fallback: {
|
|
||||||
"stream": require.resolve("stream-browserify"),
|
|
||||||
"zlib": false,
|
|
||||||
"https": false,
|
|
||||||
"http": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
mix.js('resources/assets/js/app.js', 'public/v1/js');
|
|
||||||
mix.js('resources/assets/js/app_vue.js', 'public/v1/js').vue({version: 2});
|
|
||||||
mix.js('resources/assets/js/create_transaction.js', 'public/v1/js').vue({version: 2});
|
|
||||||
mix.js('resources/assets/js/edit_transaction.js', 'public/v1/js').vue({version: 2});
|
|
||||||
mix.js('resources/assets/js/profile.js', 'public/v1/js').vue({version: 2});
|
|
||||||
|
|
||||||
// webhooks
|
|
||||||
mix.js('resources/assets/js/webhooks/index.js', 'public/v1/js/webhooks').vue({version: 2});
|
|
||||||
mix.js('resources/assets/js/webhooks/create.js', 'public/v1/js/webhooks').vue({version: 2});
|
|
||||||
mix.js('resources/assets/js/webhooks/edit.js', 'public/v1/js/webhooks').vue({version: 2});
|
|
||||||
mix.js('resources/assets/js/webhooks/show.js', 'public/v1/js/webhooks').vue({version: 2});
|
|
@@ -76,5 +76,5 @@
|
|||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
@vite(['resources/assets/v2/pages/dashboard/dashboard.js'])
|
@vite(['src/pages/dashboard/dashboard.js'])
|
||||||
@endsection
|
@endsection
|
||||||
|
@@ -62,7 +62,7 @@
|
|||||||
})()
|
})()
|
||||||
</script>
|
</script>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
@vite(['resources/assets/v2/sass/app.scss'])
|
@vite(['sass/app.scss'])
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body class="container bg-body-secondary">
|
<body class="container bg-body-secondary">
|
||||||
|
@@ -62,7 +62,7 @@
|
|||||||
})()
|
})()
|
||||||
</script>
|
</script>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
@vite(['resources/assets/v2/sass/app.scss'])
|
@vite(['sass/app.scss'])
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body class="container bg-body-secondary">
|
<body class="container bg-body-secondary">
|
||||||
|
@@ -62,7 +62,7 @@
|
|||||||
})()
|
})()
|
||||||
</script>
|
</script>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
@vite(['resources/assets/v2/sass/app.scss'])
|
@vite(['sass/app.scss'])
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="login-page bg-body-secondary">
|
<body class="login-page bg-body-secondary">
|
||||||
|
@@ -174,5 +174,5 @@
|
|||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
@vite(['resources/assets/v2/pages/accounts/index.js'])
|
@vite(['src/pages/accounts/index.js'])
|
||||||
@endsection
|
@endsection
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
@extends('layout.v2')
|
@extends('layout.v2')
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
@vite(['resources/assets/v2/pages/administrations/create.js'])
|
@vite(['src/pages/administrations/create.js'])
|
||||||
@endsection
|
@endsection
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="app-content">
|
<div class="app-content">
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
@extends('layout.v2')
|
@extends('layout.v2')
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
@vite(['resources/assets/v2/pages/administrations/edit.js'])
|
@vite(['src/pages/administrations/edit.js'])
|
||||||
@endsection
|
@endsection
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="app-content">
|
<div class="app-content">
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
@extends('layout.v2')
|
@extends('layout.v2')
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
@vite(['resources/assets/v2/pages/administrations/index.js'])
|
@vite(['src/pages/administrations/index.js'])
|
||||||
@endsection
|
@endsection
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="app-content">
|
<div class="app-content">
|
||||||
|
@@ -54,5 +54,5 @@
|
|||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
@vite(['resources/assets/v2/pages/dashboard/dashboard.js'])
|
@vite(['src/pages/dashboard/dashboard.js'])
|
||||||
@endsection
|
@endsection
|
||||||
|
@@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
@yield('styles')
|
@yield('styles')
|
||||||
@vite(['resources/assets/v2/sass/app.scss'])
|
@vite(['src/sass/app.scss'])
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
@extends('layout.v2')
|
@extends('layout.v2')
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
@vite(['resources/assets/v2/pages/transactions/create.js'])
|
@vite(['src/pages/transactions/create.js'])
|
||||||
@endsection
|
@endsection
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="app-content">
|
<div class="app-content">
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
@extends('layout.v2')
|
@extends('layout.v2')
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
@vite(['resources/assets/v2/pages/transactions/edit.js'])
|
@vite(['src/pages/transactions/edit.js'])
|
||||||
@endsection
|
@endsection
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="app-content">
|
<div class="app-content">
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
@extends('layout.v2')
|
@extends('layout.v2')
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
@vite(['resources/assets/v2/pages/transactions/index.js'])
|
@vite(['src/pages/transactions/index.js'])
|
||||||
@endsection
|
@endsection
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="app-content">
|
<div class="app-content">
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
@extends('layout.v2')
|
@extends('layout.v2')
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
@vite(['resources/assets/v2/pages/transactions/show.js'])
|
@vite(['src/pages/transactions/show.js'])
|
||||||
@endsection
|
@endsection
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="app-content">
|
<div class="app-content">
|
||||||
|
Reference in New Issue
Block a user