vuemaker-webpack-plugin
Webpack plugin to build vue files from html/script/style files.
Inspired by vue-builder-webpack-plugin and gulp-vuemaker
Description
This plugin takes your *.js|coffee|css|scss|sass|less|styl|html|pug|jade
files and makes one *.vue
file for webpack and vue-loader.
Usage
In your webpack.config.js
:
const VuemakerWebpackPlugin = ; moduleexports = // … plugins: root: 'src/path/to/components' ;
"scoped" support
Add a one line multiline comment on the top (first line) of your style file with vue
and scoped
mentioned.
/* vue:scoped */
"functional" support
Add a one line multiline comment on the top (first line) of your style file with vue
and functional
mentioned.
<!-- vue:functional -->Your template here…