1.0.1 • Published 9 years ago

laravel-elixir-webpack v1.0.1

Weekly downloads
42
License
MIT
Repository
github
Last release
9 years ago

laravel-elixir-webpack

Simple extension to laravel elixir to build javascript bundle with webpack.

Install

npm install --save-dev laravel-elixir-webpack

Usage

Example Gulpfile:

var elixir = require('laravel-elixir');

require('laravel-elixir-webpack');

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

You can also use multiple entry points.

var elixir = require('laravel-elixir');

require('laravel-elixir-webpack');

elixir(function(mix) {
    mix.webpack(['app.js', 'backend.js']);
});

Advanced example

elixir(function(mix) {
    mix.webpack('app.js', {
        module: {
          loaders: [
            { test: /\.css$/, loader: 'style!css' },
          ],
        },
    });
});

Multiple entry points.

elixir(function(mix) {
    mix.webpack(['app.js', 'backend.js'], {
        module: {
          loaders: [
            { test: /\.css$/, loader: 'style!css' },
          ],
        },
    });
});

Setting an output file.

elixir(function(mix) {
    mix.webpack('app.js', {}, './your-public-path/app.js');
});
1.0.1

9 years ago

1.0.0

9 years ago

0.2.3

9 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.6

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

11 years ago

0.1.0

11 years ago