Notes:
- Third-party plugins are not tested with SSR;
- ThemeSettings component is not supported, and, as a result, no multi theming.
- Create a new NUXT app
{app}with the next settings:
- UI framework: bootstrap
- Mode:
Universal - axios:
true - aslint:
true - prettier:
no - Package manager:
Yarn
-
Remove
components/Logo.vue -
Copy
vue-starter/src/style.scssto{app}/assets/ -
Remove
{app}/layouts/default.vue -
Copy layouts from
vue-starter/src/layout/to{app}/layouts/ -
Rename the required layout file to
default.vue. -
Open
{app}/layouts/default.vueand replace<router-view />with<nuxt /> -
Remove
{app}/pages/index.vueand create defaultindex.vueandpage-2/index.vue -
Copy
vue-starter/public/vendor/directory to{app}/static/ -
Remove
{app}/static/vendor/js/theme-settings.js -
Copy
vue-starter/src/vendor/directory to{app}/ -
Open
{app}/vendor/styles/_theme/_libs.scssand comment all includes withinappwork-libs-themeandappwork-libs-material-thememixins -
Copy
vue-starter/src/globals.jsandvue-starter/src/layout/helpers.jsto{app}/plugins/vendor/ -
Open
{app}/plugins/vendor/globals.jsand replaceimport layoutHelpers from '@/layout/helpers.js’withimport layoutHelpers from './helpers.js' -
Create
{app}/plugins/inject.jsand{app}/plugins/inject-ssr.js -
Open
package.jsonand editlintscript -
Create
{app}/.eslintignore -
Add
perfect-scrollbar,node-sass,sass-loaderpackages andresolutionsblock topackage.json -
Edit
{app}/nuxt.config.js
head.htmlAttrs.class - Enable default/material style
head.meta - Meta tags
head.link - Roboto font and icons. Uncomment required fonts
head.script - Appwork’s static scripts
css - CSS files. Change @/vendor/styles/theme-corporate.scss with whatever theme you want
plugins - Inject globals
modules - Add {css: false} because we already have one
build - Add node_modules alias to webpack config
Hi, for anyone who have the same issue, please take attention on specified versions in the package.json. I haven't upgraded Bootstrap version yet (4.4.0) and this is why the SCSS "mix" error appears. Currently only version 4.3.x is supported.
Also, make sure that only content of the mixins is commented out, not entire mixins. For example, this will not work:
But this will: