1.0.1 • Published 8 years ago

laravel-elixir-webpack v1.0.1

Weekly downloads
42
License
MIT
Repository
github
Last release
8 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

8 years ago

1.0.0

8 years ago

0.2.3

8 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.6

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago