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.scss
to{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.vue
and replace<router-view />
with<nuxt />
-
Remove
{app}/pages/index.vue
and create defaultindex.vue
andpage-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.scss
and comment all includes withinappwork-libs-theme
andappwork-libs-material-theme
mixins -
Copy
vue-starter/src/globals.js
andvue-starter/src/layout/helpers.js
to{app}/plugins/vendor/
-
Open
{app}/plugins/vendor/globals.js
and replaceimport layoutHelpers from '@/layout/helpers.js’
withimport layoutHelpers from './helpers.js'
-
Create
{app}/plugins/inject.js
and{app}/plugins/inject-ssr.js
-
Open
package.json
and editlint
script -
Create
{app}/.eslintignore
-
Add
perfect-scrollbar
,node-sass
,sass-loader
packages andresolutions
block 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: