vuemaker-webpack-plugin

1.0.1 • Public • Published

vuemaker-webpack-plugin

stability-wip Npm Version Coverage Status

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…

Package Sidebar

Install

npm i vuemaker-webpack-plugin

Weekly Downloads

1

Version

1.0.1

License

SEE LICENSE IN UNLICENSE

Unpacked Size

9.71 kB

Total Files

4

Last publish

Collaborators

  • thierrymichel