Skip to content

Cannot load Plugins when using buildDir #14

Open
@asyrafduyshart

Description

@asyrafduyshart

My nuxt.config snippet
build: { publicPath: "/assets/", extractCSS: true, /* ** Run ESLint on save */ extend(config, ctx) { if (ctx.isDev && ctx.isClient) { // config.module.rules.push({ // enforce: 'pre', // test: /\.(js|vue)$/, // loader: 'eslint-loader', // exclude: /(node_modules)/ // }) } } }, buildDir: "../prod/server/nuxt", plugins: ['~/plugins/script'],

It's work normally when using not adding buildDir, but we cannot deploy to firebase,
But when adding it will result this error:
screenshot from 2018-08-16 18-17-07

My Plugins
`import Vue from 'vue'
import VS2 from 'vue-script2'

Vue.use(VS2)
`
This is only happen when integrate with Firebase SSR,

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions