Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "vueify", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Vue component transform for Browserify", | ||
@@ -22,3 +22,3 @@ "main": "index.js", | ||
"through": "^2.3.6", | ||
"vue-component-compiler": "^1.1.2" | ||
"vue-component-compiler": "^1.1.5" | ||
}, | ||
@@ -25,0 +25,0 @@ "peerDependencies": { |
@@ -83,3 +83,3 @@ # vueify | ||
Currently supported preprocessors are: | ||
These are the built-in preprocessors: | ||
@@ -94,2 +94,25 @@ - stylus | ||
## Registering Custom Pre-Processors | ||
Create a `vue.config.js` file at where your build command is run (usually y the root level of your project): | ||
``` js | ||
module.exports = function (compiler) { | ||
// register a compile function for <script lang="es"> | ||
compiler.register({ | ||
lang: 'es', | ||
type: 'script', | ||
compile: function (content, cb) { | ||
// transform the content... | ||
cb(null, content) | ||
} | ||
}) | ||
} | ||
``` | ||
## Syntax Highlighting | ||
And here's a [SublimeText package](https://github.com/vuejs/vue-syntax-highlight) for enabling language highlighting/support in these embbeded code blocks. | ||
@@ -96,0 +119,0 @@ |
3921
125