Skip to content

Commit

Permalink
fix: vite behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrlv committed Jul 11, 2022
1 parent a7cf9ed commit 47468c1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 2 additions & 4 deletions app/config/config.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

return [
'arnoson.kirby-vite.rootDir' => '../src/',
'arnoson.kirby-vite.outDir' => 'assets',
'arnoson.kirby-vite.entry' => 'app.js',
'arnoson.kirby-vite.outDir' => '/assets',
'arnoson.kirby-vite.entry' => 'app.js',

'smartypants' => true,
'debug' => true,
'cache' => [
'pages' => [
'type' => 'php',
Expand Down
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

$kirby = new \Kirby\Cms\App([
'roots' => [
'index' => __DIR__,
'base' => __DIR__,
'site' => __DIR__ . '/app',
// Storage
// --------------------------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
content: [
'www/app/templates/**/*.php',
'www/app/snippets/**/*.php',
'app/templates/**/*.php',
'app/snippets/**/*.php',
'src/js/**/*.{js,jsx}',
],
theme: {
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default ({ mode }) => ({
build: {
target: 'es2017',
assetsDir: '.',
outDir: resolve(cwd, '/public/assets'),
outDir: resolve(cwd, 'assets'),
rollupOptions: {
input: resolve(cwd, 'src/app.js'),
},
Expand Down

0 comments on commit 47468c1

Please sign in to comment.