[Vuejs]-VueJS (w/ Vuetify) may need additional loader for scoped css

0👍

I had the same problem, removing the default css loader and replacing it solved the issue for me. I’m using a Rails environment so my config looks a bit different but here’s the relevant snippet:

// config/webpack/environment.js
const { environment } = require('@rails/webpacker')
environment.loaders.delete('css')
environment.loaders.append('css', {
  test: /\.css$/,
  use: [
    'style-loader',
    'css-loader'
  ]
});

Leave a comment