nuxtjs-extensions
v2.1.0
Published
A bunch of additional Nuxt modules. ๐
Downloads
19
Readme
NuxtJS Extensions
A bunch of additional Nuxt modules. ๐
Setup
npm install nuxtjs-extensions
Usage
- Inside nuxt.config.js add the following:
{
modules: [
[
'nuxtjs-extensions/typescript',
{
tsconfig: path.resolve(/* tsconfig.json */),
tslint: path.resolve(/* tslint.json */)
}
],
[
'nuxtjs-extensions/vuetify',
{
css: false, // disable this and use CDN
theme: {
primary: '#3f51b5',
secondary: '#757de8',
accent: '#ff4081',
error: '#F44336',
warning: '#ff9800',
info: '#2196F3',
success: '#4CAF50'
}
}
],
['nuxtjs-extensions/vee-validate', { // specify vee-validate options }]
]
}
From ๐
import { Component, Emit, Inject, Model, Prop, Provide, Watch, Vue } from 'vue-property-decorator';
import { State, Getter, Action, Mutation, namespace } from 'vuex-class';
To ๐
import {
Component,
Emit,
Inject,
Model,
Prop,
Provide,
Watch,
Vue,
State,
Getter,
Action,
Mutation,
namespace
} from 'nuxtjs-extensions';