v-viewer
v-viewer copied to clipboard
Production didn't include CSS
v-viewer.js
in plugins
import Vue from 'vue'
import 'viewerjs/dist/viewer.css'
import Viewer from 'v-viewer'
Vue.use(Viewer);
and add the plugin to nuxt.config.ts
plugins: [
'~/plugins/v-viewer.js',
],
but css wasn't include in Production. Development include css and works fine.
This may be nuxt
's config problem, have you tried to import other css files?
yes I did. Including css file to header is only worked.