casper 6 жил өмнө
parent
commit
36c86fa76c
1 өөрчлөгдсөн 35 нэмэгдсэн , 0 устгасан
  1. 35 0
      README.md

+ 35 - 0
README.md

@@ -0,0 +1,35 @@
+# vue-cli-plugin-coffee
+
+CoffeeScript2 support for the projects created with [@vue/cli](https://github.com/vuejs/vue-cli).
+
+## Installation
+
+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:
+
+```shell
+vue add coffee
+```
+
+## Entries
+
+According to [this](https://cli.vuejs.org/config/#configurewebpack) you can add entries using your `vue.config.js` like so:
+
+```javascript
+// vue.config.js
+module.exports = {
+  configureWebpack: {
+    entry: {
+      'new-entry': 'path/to/new/entry.coffee'
+    }
+  }
+}
+
+```
+
+## -coffeescript
+
+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:
+
+## Troubleshooting
+
+You should turn off ESLint or any non-coffee lint you have, of course :wink: