laravel-elixir-vue-2

'Laravel Elixir Vue 2.0 Integration'
28,012 107
Install
npm install laravel-elixir-vue-2
Latest Version:0.3.0
Vue:2
License:MIT
Last Updated:Nov 30, 2016
Links: GitHub  ·  npm
Maintainer: yyx990803

laravel-elixir-vue-2

Laravel Elixir 6 support for Vue 2.0

This package provides Webpack support for compiling Vue 2.0 .vue files in your Laravel Elixir 6 projects. Please note that, if using Laravel Elixir 5 or below, you don't want this package.

Usage is identical to laravel-elixir-vue:

Step 1: Install

npm install laravel-elixir-vue-2 --save-dev

Step 2: Gulpfile.js

var elixir = require('laravel-elixir')

require('laravel-elixir-vue-2')

elixir(function(mix) {
  mix.webpack('app.js'); // resources/assets/js/app.js
})

Extending/Modifying the Default Config

From Elixir's docs:

If you'd like to leverage more of Webpack's functionality, Elixir will read any webpack.config.js file that is in your project root and factor its configuration into the build process.

For example, to make Vue use sass-loader for <style lang="scss">:

// webpack.config.js
module.exports = {
  vue: {
    loaders: {
      js: 'buble-loader',
      scss: 'vue-style-loader!css-loader!sass-loader'
    }
  }
}

Using Spread Operator

The Object spread operator requires Object.assign to be available. Make sure to polyfill it if you target browsers that don't support it yet.

Related Packages

vue-tilt.js

Add tilt-effect to your elements

22,943 52
laravel-precognition-vue

Laravel Precognition (Vue).

598,846 175
laravel-profiler-client

Profiler Client and Profiler Server for Laravel 5.2+

81,711 7
laravel-file-manager

File manager for Laravel

28,588
@awes-io/nuxt-laravel

AwesCode UI module for connection with Laravel backend

7,075 9

Version History

Version Released License
0.3.0 MIT
0.2.0 MIT
0.1.1 MIT
0.1.0 MIT