laravel-webpack
v0.0.7
Published
Webpack the Laravel way
Downloads
8
Readme
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')
})