Skip to content

Commit ccd8ef7

Browse files
committed
feature: updated docker docs, fix: moved purgecss to build modules, clarified webfont loader comment, removed unnecessary target static flag from npm build script
1 parent 77db4e2 commit ccd8ef7

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

README.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
---
1818

19-
<p align="center">An opinionated starter project for Nuxt, Vuetify, and Netlify CMS.
19+
<p align="center">A fully configured PWA for Nuxt and Netlify CMS application development.
2020

21-
Quickly bootstrap a blog, CMS, or static site using the power of Nuxt and the headless CMS, Netlify CMS. One click Netlify deployment. Optimized for performance.
21+
Quickly bootstrap a blog, CMS, or static site using the power of Nuxt and the headless CMS, Netlify CMS. Development amplified using the Vuetify UI library. One click Netlify deployment. Optimized for performance. Production ready.
2222
<br>
2323

2424
</p>
@@ -31,7 +31,7 @@ Quickly bootstrap a blog, CMS, or static site using the power of Nuxt and the he
3131

3232
## About <a name = "about"></a>
3333

34-
This starter project was designed to bootstrap the development of a modern, headless CMS blog or static website. Using the power of Nuxt, you get a Vue application that is pre-configured to maximizing performance and SEO opportunities out of the box.
34+
This starter project was designed to bootstrap the development of a modern, headless CMS blog or static website. Using the power of Nuxt, you get a PWA that is pre-configured to maximize performance and SEO opportunities out of the box.
3535

3636
Vuetify is used for the UI library and this project features responsive fonts, theme caching, a global breakpoint fix and much more.
3737

@@ -100,7 +100,19 @@ yarn start
100100
yarn generate
101101
```
102102

103-
> This project was bootstrapped with `create-nuxt-app`. There are more detailed explanations of how everything works in the [Nuxt.js docs](https://nuxtjs.org).
103+
## Docker
104+
105+
There is basic docker support for those who prefer to develop this way. The full usage docs are in the Dockerfile.
106+
107+
```bash
108+
# Build command
109+
docker build -t nuxt:nginx .
110+
111+
# Serve command
112+
docker run --name basic_nuxt --rm -d -p 3333:80 nuxt:nginx
113+
```
114+
115+
This will serve the app on localhost:3333
104116

105117
## Netlify CMS
106118

nuxt.config.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ export default {
8080
},
8181
],
8282
},
83+
workbox: {
84+
clientClaims: false,
85+
offlineStrategy: "NetworkFirst",
86+
},
8387
},
8488
/*
8589
** Configure the generation of your universal web application to a static web application
@@ -114,8 +118,9 @@ export default {
114118
*/
115119
buildModules: [
116120
"@aceforth/nuxt-optimized-images",
117-
"@nuxtjs/pwa",
121+
"nuxt-purgecss",
118122
"@nuxtjs/vuetify",
123+
"@nuxtjs/pwa",
119124
],
120125
/*
121126
** Nuxt.js modules
@@ -149,7 +154,7 @@ export default {
149154
*/
150155
webfontloader: {
151156
google: {
152-
// Loads Open Sans font with weights 300 and 400 + display font as swap
157+
// Loads Poppins + display font as swap
153158
families: ["Poppins&display=swap"],
154159
},
155160
},

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"private": true,
77
"scripts": {
88
"dev": "nuxt",
9-
"build": "nuxt build --target static",
9+
"build": "nuxt build",
1010
"start": "nuxt start",
1111
"export": "nuxt export",
1212
"serve": "nuxt serve",

0 commit comments

Comments
 (0)