0.0.6 • Published 8 years ago

laravel-elixir-webpack-ex v0.0.6

Weekly downloads
32
License
MIT
Repository
github
Last release
8 years ago

Laravel-Elixir-Webpack-Ex

Laravel-Elixir webpack extension.

Install

nam install laravel-elixir-webpack-ex —-save

Usage

Simple Example

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

require('laravel-elixir-webpack-ex');

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

public/js is output file path, resources/assets/js is assets baseDir, both all optional.

You can pass your webpack.config.js:

mix.webpack('entry.js', require('./webpack.config.js'));

Multiple Entry Points

You can pass entries array:

mix.webpack(['entry1.js', 'entry2.js', 'entry3.js'], { ...webpackOptions });

or Pass key-value Object in it:

mix.webpack({
  App: 'entry1.js',
  Backend: 'entry2.js',
  Dashboard: 'entry3.js',
}, {...webpackOptions });

like webpack entry option, it will produce App.js, Backend.js, Dashboard.js at output dir.

License

Copyright (c) 2015 Far Tseng Licensed under the MIT license.

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

9 years ago