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')
})

Readme

Keywords

Package Sidebar

Install

npm i laravel-webpack

Weekly Downloads

6

Version

0.0.7

License

ISC

Last publish

Collaborators

  • thomasalbri