poi-plugin-coffee

Use CoffeeScript in your Poi project

Usage no npm install needed!

<script type="module">
  import poiPluginCoffee from 'https://cdn.skypack.dev/poi-plugin-coffee';
</script>

README

poi-plugin-coffee

Use coffeescript in your Poi project.

Install

yarn add coffeescript poi-plugin-coffee --dev

Usage

// poi.config.js
module.exports = {
  plugins: [
    require('poi-plugin-coffee')(options)
  ]
}

Notes:

  • To use in Vue SFC, set lang="coffee" or lang="coffeescript":
<script lang="coffee">
export default
  data: ->
    foo: 'foo'
</script>

API

Table of Contents

pluginCoffeescript

Add CoffeeScript support

Parameters

  • options Object
    • options.loaderOptions any Options for coffee-loader, babelOptions defaults to the babel-loader options we use against .js files. (optional, default {transpile:babelOptions})

License

MIT © EGOIST