Skip to content
/ nuxt-craft-starter Public template

A Nuxt + Craft CMS + Tailwind CSS configured with Apollo starter to get you going on your merry way

Notifications You must be signed in to change notification settings

rsagency/nuxt-craft-starter

Repository files navigation

nuxt-craft-starter

Boilerplate for projects that require Nuxt JS + Craft CMS + Tailwind CSS

Features

Additional Notes

v-html

If your raw HTML is coming from a secure source (such as Craft) and you have "Purify HTML" set on your redactor fields, you may add this setting to you eslintrc.js file to allow for using the v-html directive and to avoid eslint complaining about XSS attacks:

  rules: {
      'vue/no-v-html': 0
  }

Overide vscode css style settings with stylelint

If vscode is complaining about at-rule or selector expectedcss(css-ruleorselectorexpected) or semi-colon expectedcss(css-semicolonexpected) while using your tailwind @apply rules, you need to adjust your workspace settings to allow for the stylelint packge to validate css rather than vscode. To do that, add the following to your workspaces settings.json file:

  /**
   * Disable VS Code from validating CSS/SCSS
   */
  "stylelint.enable": true,
  "scss.validate": false,
  "css.validate": false,

Build Setup

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate

For detailed explanation on how things work, check out Nuxt.js docs.

About

A Nuxt + Craft CMS + Tailwind CSS configured with Apollo starter to get you going on your merry way

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published