gulp-vueify2
Compile *.vue
component files using vueify without Browserify. Can be usefull for Electron app and server-side rendering (I wrote it primarily for the second case).
Use code from the package gulp-vueify, written by Zahajki, which seems abandoned. Main differences with the mentionned package are support for Vue2 and out of the box CSS extraction.
Installation
npm install gulp-vueify2 --save-dev
If you want to keep the CSS inline (won't work for server-side rendering), you also may have to do:
npm install vueify-insert-css babel-core babel-plugin-transform-runtime babel-preset-es2015 --save-dev
Usage
var vueify = ; gulp;
Options for vueify are listed there.
I added one, CSSOut
to specify the output of the style content, if extractCSS is set to true (ignored otherwise). Value can be a string (path to an output file), or a function that will be called for each component with the path of the component and the corresponding style.
With an output file
gulp;
With a function
gulp;