Skip to content

Commit ea50c82

Browse files
committed
Update to Vite and latest versions of deps.
1 parent 4037ce6 commit ea50c82

30 files changed

+275
-200
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Statamic Starter Kit: Cool Writings
44
</h1>
55

6-
![Statamic 3.2+](https://img.shields.io/badge/Statamic-3.2+-FF269E?style=for-the-badge&link=https://statamic.com)
6+
![Statamic 4+](https://img.shields.io/badge/Statamic-4+-FF269E?style=for-the-badge&link=https://statamic.com)
77
<!-- /statamic:hide -->
88

99
## Features
@@ -50,7 +50,7 @@ The above installers should prompt you to make a user, but you can also run `php
5050

5151
### 3. Recompile the CSS (optional)
5252

53-
The [TailwindCSS](https://tailwindcss.com/) included in this kit is compiled with [PurgeCSS](https://purgecss.com/) to reduce filesize on any unused classes and selectors. If you want to modify anything, just recompile it.
53+
The [TailwindCSS](https://tailwindcss.com/) included in this kit is compiled and purged to reduce filesize on any unused classes and selectors. If you want to modify anything, just recompile it.
5454

5555
```
5656
npm i && npm run dev
@@ -59,12 +59,12 @@ npm i && npm run dev
5959
To compile for production again:
6060

6161
```
62-
npm run production
62+
npm run build
6363
```
6464

6565
### 4. Do your thing!
6666

67-
If you're using [Laravel Valet](https://laravel.com/docs/valet) (or similar), your site should be available at `http://cool-site.test`. You can access the control panel at `http://cool-site.test/cp` and login with your new user. Open up the source code, follow along with the [Statamic 3 docs](https://statamic.dev), and enjoy!
67+
If you're using [Laravel Valet](https://laravel.com/docs/valet) (or similar), your site should be available at `http://cool-site.test`. You can access the control panel at `http://cool-site.test/cp` and login with your new user. Open up the source code, follow along with the [Statamic docs](https://statamic.dev), and enjoy!
6868

6969
## Contributing
7070

package.json

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
{
22
"private": true,
33
"scripts": {
4-
"dev": "mix",
5-
"development": "mix",
6-
"watch": "mix watch",
7-
"watch-poll": "mix watch -- --watch-options-poll=1000",
8-
"hot": "mix watch --hot",
9-
"prod": "mix --production",
10-
"production": "mix --production"
4+
"dev": "vite",
5+
"build": "vite build"
116
},
127
"devDependencies": {
13-
"autoprefixer": "^10.4.0",
14-
"cross-env": "^7.0",
15-
"css-loader": "^5.2.7",
16-
"laravel-mix": "^6.0",
17-
"postcss": "^8.4.5",
18-
"postcss-import": "^14.0.1",
19-
"tailwindcss": "^3.0.23"
8+
"@tailwindcss/typography": "^0.5.9",
9+
"autoprefixer": "^10.4.14",
10+
"laravel-vite-plugin": "^0.7.2",
11+
"postcss": "^8.4.23",
12+
"tailwindcss": "^3.3.2",
13+
"vite": "^4.0.0"
2014
},
2115
"dependencies": {
2216
"alpinejs": "^3.9.1"

postcss.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
plugins: {
3+
'tailwindcss/nesting': {},
4+
tailwindcss: {},
5+
autoprefixer: {},
6+
},
7+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
data: { }
22
size: 317647
3-
last_modified: 1579281552
3+
last_modified: 1686751944
44
width: 1344
55
height: 896
6+
mime_type: image/jpeg
7+
duration: null
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
data: { }
2-
size: 87881
3-
last_modified: 1579214338
2+
size: 82743
3+
last_modified: 1686751944
44
width: 940
55
height: 611
6+
mime_type: image/jpeg
7+
duration: null
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
data: { }
2-
size: 76240
3-
last_modified: 1579206544
2+
size: 66884
3+
last_modified: 1686751944
44
width: 1500
55
height: 750
6+
mime_type: image/jpeg
7+
duration: null
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
data: { }
22
size: 1577
3-
last_modified: 1579283014
4-
width: null
5-
height: null
3+
last_modified: 1686751944
4+
width: '164.6'
5+
height: '148.6'
6+
mime_type: image/svg+xml
7+
duration: null
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
data: { }
2-
size: 2060
3-
last_modified: 1579016377
4-
width: null
5-
height: null
2+
size: 1984
3+
last_modified: 1686751944
4+
width: 16.0
5+
height: 16.0
6+
mime_type: image/svg+xml
7+
duration: null
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
data: { }
2-
size: 1576
3-
last_modified: 1579016375
4-
width: null
5-
height: null
2+
size: 1501
3+
last_modified: 1686751944
4+
width: 16.0
5+
height: 16.0
6+
mime_type: image/svg+xml
7+
duration: null
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
data: { }
2-
size: 1067
3-
last_modified: 1579016425
4-
width: null
5-
height: null
2+
size: 985
3+
last_modified: 1686751944
4+
width: 16.0
5+
height: 16.0
6+
mime_type: image/svg+xml
7+
duration: null

0 commit comments

Comments
 (0)