Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "src/build/plugins"

Index

Variables

Const log

log: Consola = logger('plugin')

Const plugins

plugins: NuxtPlugins[] = [{name: '$polyfill',path: 'polyfill.js',templatePath: path.resolve(__dirname, '../../templates/polyfill-plugin.js'),mode: 'client',support: (_appProp: NuxtAppProperties) => true,order: 0,},// {// name: '$production',// path: 'production.js',// templatePath: path.resolve(__dirname, '../../templates/production-plugin.js'),// mode: 'client',// support: (_appProp: NuxtAppProperties) => true,// order: 1,// },{name: '$ustra',path: 'ustra.js',templatePath: path.resolve(__dirname, '../../templates/ustra-plugin.js'),support: (_appProp: NuxtAppProperties) => true,templateOption: (_appProp: NuxtAppProperties) => _appProp,order: 2,},// {// name: '$auth',// path: 'auth.js',// templatePath: path.resolve(__dirname, '../../templates/auth-plugin.js'),// support: (_appProp: NuxtAppProperties) => _appProp.app.auth.enabled,// templateOption: (_appProp: NuxtAppProperties) => _appProp.app.auth,// order: 51,// },{name: '$$',path: 'jquery.js',templatePath: path.resolve(__dirname, '../../templates/jquery-plugin.js'),mode: 'client',support: (appProp: NuxtAppProperties) => appProp.nuxt.module.useJQuery === true,order: 3,},{name: '$clientInit',path: 'client-init.js',templatePath: path.resolve(__dirname, '../../templates/client-init-plugin.js'),mode: 'client',order: 999,},]

Functions

Const addPlugin

Const craetePluginFile

Const registerPlugin