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"
orlang="coffeescript"
:
<script lang="coffee">
export default
data: ->
foo: 'foo'
</script>
API
Table of Contents
pluginCoffeescript
Add CoffeeScript support
Parameters
options
Objectoptions.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