Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

laravel-webpack

0.0.7 • Public • Published

laravel-webpack

Webpack in a opinionated way to make it super simple to get it to work with laravel

features

  • compiles sass / scss
  • compiles less
  • TODO can version files with a rev-manifest.json compatible with the elixir function
  • TODO support for ES6 and React JSX
  • simple to use api

Getting started

first install laravel-webpack

$ npm install --save laravel-webpack

add change your gulp file to

var webpack = require('laravel-webpack')

webpack(function(packer) {
    // compile app.scss to app.css
    packer.styles('app', 'sass/app.scss')

    // compile app.js to javascripts.js
    packer.js('javascripts', 'js/app.js')
})

install

npm i laravel-webpack

Downloadsweekly downloads

12

version

0.0.7

license

ISC

last publish

collaborators

  • avatar