vuemaker-webpack-plugin
v1.0.1
Published
Webpack plugin to build vue files from html/script/style files
Downloads
24
Maintainers
Readme
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 = require('vuemaker-webpack-plugin');
module.exports = {
// …
plugins: [
new VuemakerWebpackPlugin({
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 */
Your styles here…
"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…