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
Nice, tnx!
But it seems that there are some errors based on next report:
I found that in case of removing CSS line
'@/vendor/styles/bootstrap.scss',from nuxt.config.js file, first error will disappear.Envoriment:
Any help? 😕