DanielRosenwasser / typescript-vue-tutorial

A basic Vue application that uses TypeScript with single-file .vue components.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some problems i meet and how i solve them

JimChenWYU opened this issue · comments

  1. You may need an appropriate loader to handle this file type.

in webpack.config.js add

module: {
  rules: [
    ...
    {
        test: /\.css$/,
        use: [
          'css-loader'
        ]
    }
  ]
}
  1. TypeError: Cannot read property 'minify' of undefined

npm install terser@3.14.1 --save-dev
You can find answer from here