nuxt-community / universal-storage-module

Universal Storage Utilities for Nuxt 2
MIT License
276 stars 15 forks source link

How to import configuration #91

Closed liseipi closed 3 years ago

liseipi commented 4 years ago

in NUXT nuxt.config.js storage: '@/plugins/storage',

plugins/storage.js file

export default {
  vuex: {
    namespace: 'storage'
  },
  localStorage: {
    prefix: 'storage.'
  }
}

This does not work, how to configure it correctly?

farzadso commented 4 years ago

What do you mean by This does not work ?

Does it produce an error? Which part of it doesn't work?

Can you provide a repo which contains the problem?

liseipi commented 4 years ago

你是什么意思This does not work

它会产生错误吗?哪一部分不起作用?

您可以提供包含该问题的回购吗?

What do you mean by This does not work ?

Does it produce an error? Which part of it doesn't work?

Can you provide a repo which contains the problem?

I want to import the configuration file in the nuxt.config.js file and found that it does not work

atinux commented 3 years ago

Please re-open with a reproduction.