[Vuejs]-Unknown word error when import css file

0👍

So the way I resolve this problem is add it according to @Allkin’s comment:

nuxt.config.js

css: [
    '~/assets/style/app.styl',
    'material-design-icons-iconfont/dist/material-design-icons.css'
  ],

Also I removed this in nuxt.config.js, otherwise it still have the same error

{
    enforce: 'pre',
    test: /\.css$/,
    use: ['style-loader', 'css-loader']
  },
  {
    test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/,
    loader: 'url-loader',
    options: {
      limit: 10000
    }
  }

Leave a comment