v-viewer icon indicating copy to clipboard operation
v-viewer copied to clipboard

Production didn't include CSS

Open rikusen0335 opened this issue 4 years ago • 2 comments

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.

rikusen0335 avatar Apr 02 '20 12:04 rikusen0335

This may be nuxt's config problem, have you tried to import other css files?

mirari avatar Apr 13 '20 08:04 mirari

yes I did. Including css file to header is only worked.

rikusen0335 avatar Apr 13 '20 08:04 rikusen0335