LoffeeScript Plugin for [email protected]
-
just run:
vue add livescript
-
if you project is using JSX with CoffeeScript:
-
add
babel.config.js
to your project root dir:// babel.config.js module.exports = { plugins: ['transform-vue-jsx'] }
-
install dependencies for JSX:
npm i babel-plugin-syntax-jsx babel-plugin-transform-vue-jsx\ babel-helper-vue-jsx-merge-props -D
-
-
parse Livescript in your Vue project.
-
support JSX in
.ls
. -
support entry
main.ls
- this plugin will replace the app's entry to./src/main.ls
if the file exists.