10.0.0-alpha.0 • Published 6 years ago

poi-plugin-coffee v10.0.0-alpha.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

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