6du-livescript-loader 中文文档教程
hack-livescript-loader
Usage
{
module: {
loaders: [
{ test: /\.vue$/, loader: "vue-livescript-loader" },
{ test: /\.ls$/, loader: "vue-livescript-loader" }
]
}
}
<template>
<h1>Hello {{ msg }}
</template>
<script lang="ls">
module.exports =
data: ->
msg: 'World'
</script>
Why another Livescript loader?
原始的 Livescript loader 不支持 .vue 文件 这是 coffee-loader
License
MIT (http://www.opensource.org/licenses /mit-license.php)
hack-livescript-loader
Usage
{
module: {
loaders: [
{ test: /\.vue$/, loader: "vue-livescript-loader" },
{ test: /\.ls$/, loader: "vue-livescript-loader" }
]
}
}
<template>
<h1>Hello {{ msg }}
</template>
<script lang="ls">
module.exports =
data: ->
msg: 'World'
</script>
Why another Livescript loader?
The original Livescript loader doesn't support .vue files This is an improved/forked/inspired version of coffee-loader
License
MIT (http://www.opensource.org/licenses/mit-license.php)