Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

laravel-elixir-vue-2

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-elixir-vue-2

'Laravel Elixir Vue 2.0 Integration'

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
141
-69.21%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

vue

FAQs

Package last updated on 30 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts