Skip to content

Commit 2b010aa

Browse files
author
Yaroslav Kasperovich
committed
Update README.md to include cache-loader
1 parent 17d0d93 commit 2b010aa

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
CoffeeScript2 support for the projects created with [@vue/cli](https://github.com/vuejs/vue-cli).
44

5+
With built-in:
6+
* `cache-loader`
7+
58
## Installation
69

710
According to [this](https://cli.vuejs.org/guide/plugins-and-presets.html#installing-plugins-in-an-existing-project) you are able to install community plugins as follows:
@@ -26,10 +29,6 @@ module.exports = {
2629

2730
```
2831

29-
## -coffeescript
30-
31-
I found [this](https://github.com/thisredone/vue-cli-plugin-coffeescript) package but apparently it does some `main.coffee` searching and replacement. While it is not bad by any means, it seems to me like a custom behavior. Want to keep things as clean as possible :sparkles:
32-
3332
## Troubleshooting
3433

3534
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.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-cli-plugin-coffee",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "CoffeeScript2 support for your @vue/cli project",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)