Keine Beschreibung

Yaroslav Kasperovich 240d1778fb Add backward version compatibility vor 5 Jahren
.eslintrc a044ac2d4e Add ESLint vor 5 Jahren
.gitignore 799634a7eb Add Prettier, change license vor 5 Jahren
.prettierrc 799634a7eb Add Prettier, change license vor 5 Jahren
README.md 550f3a4c6c Add babel support vor 5 Jahren
generator.js 795a361a37 wire dev-dep vor 6 Jahren
index.js 240d1778fb Add backward version compatibility vor 5 Jahren
package.json 240d1778fb Add backward version compatibility vor 5 Jahren
yarn.lock 550f3a4c6c Add babel support vor 5 Jahren

README.md

vue-cli-plugin-coffee

CoffeeScript2 support for the projects created with @vue/cli.

With built-in:

  • cache-loader
  • thread-loader
  • babel-loader
  • src/main.coffee support if you're not using config.pages

Installation

According to this you are able to install community plugins as follows:

vue add coffee

Entries

According to this you can add entries using your vue.config.js like so:

// vue.config.js
module.exports = {
  configureWebpack: {
    entry: {
      'new-entry': 'path/to/new/entry.coffee'
    }
  }
}

Troubleshooting

Note that vue-loader uses lang="coffee" to identify components which are using Coffeescript, but lang="coffee" is not recognizable for ESLint. Fortunately, ESLint (following traditional HTML) uses type="xxx" to identify the type of scripts. As long as a <script> tag has any type other than javascript, ESLint would mark the script as non-javascript, and skips linting it. Coffeescript’s convention is to use type="text/coffeescript" to identify itself. Therefore, in your Vue components which are using Coffeescript, using both lang and type to avoid ESLint warnings.