Webpack blocks vue

VueJS configuration for webpack blocks

Version: 1.1.0 Updated: 09/22/2017

By: foxbunny License: MIT

Downloads Last 30 Days: 39

Webpack blocks - Vue.js

This is the vue block providing Vue.js component support. Uses vue-loader.


You can install this package using npm:

npm install --save-dev webpack-blocks-vue

or yarn:

yarn add --dev webpack-blocks-vue


As of version 1.0.0, this package is compatible with webpack-blocks 1.x, and is, therefore, only compatible with webpack 2. If you need to support webpack 1, use webpack-blocks <1.0 and webpack-blocks-vue 0.2.0.

This package is currently in alpha. It has been provided to you in good faith but it is currently almost guaranteed to break.


Uses the same options as advanced vue-loader configuratioin, with the additon of extractCSS boolean flag, which is a shortcut for extracting CSS.


var {createConfig, ...} = require('webpack-blocks');
var vue = require('webpack-blocks-vue');

module.exports = createConfig([
  // ...
    loaders: {
      coffee: 'coffee-loader',
      css: 'sass-loader'
    extractCSS: true
  // ...
Categories: Vue js