2017 © Pedro Peláez
 

library laravel-webpack

Integrate Webpack into Laravel

image

zquintana/laravel-webpack

Integrate Webpack into Laravel

  • Thursday, June 15, 2017
  • by zquintana
  • Repository
  • 1 Watchers
  • 0 Stars
  • 128 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 30 Forks
  • 0 Open issues
  • 4 Versions
  • 5 % Grown

The README.md

Package to Integrate Webpack into Laravel

Package to help integrating webpack into Laravel project., (*1)

Documentation, (*2)

What is webpack?

Module bundler and CommonJS / AMD dependency manager., (*3)

For me, it replaces both grunt/gulp and RequireJS., (*4)

What does this package do?

  1. Finds javascript entry points inside your blade templates.
  2. Runs webpack with assets-webpack-plugin.
  3. Saves generated file names, so that twig function returns correct URL to generated asset.

Additionally, for development environment:, (*5)

  1. Runs webpack-dev-server, which serves and regenerates assets if they are changed.
  2. Watches twig templates for changes, updates entry points and restarts webpack-dev-server if webpack configuration changes.

More goodies: 1. Lets you configure webpack config as you want, while still providing needed parameters from Laravel, like entry points, aliases, environment and additional parameters. 2. Lets you define custom entry point providers if you don't use twig or include scripts in any other way. 3. Works with images and css/less/sass files out-of-the-box, if needed. 4. Supports both Webpack 2 (by default) and Webpack 1., (*6)

Credits

The Versions

15/06 2017

1.0.x-dev

1.0.9999999.9999999-dev

Integrate Webpack into Laravel

  Sources   Download

MIT

The Requires

 

laravel assets amd webpack commonjs

15/06 2017

1.0.1

1.0.1.0

Integrate Webpack into Laravel

  Sources   Download

MIT

The Requires

 

laravel assets amd webpack commonjs

13/06 2017

dev-master

9999999-dev

Integrate Webpack into Laravel

  Sources   Download

MIT

The Requires

 

laravel assets amd webpack commonjs

08/06 2017

1.0.0

1.0.0.0

Integrate Webpack into Laravel

  Sources   Download

MIT

The Requires

 

laravel assets amd webpack commonjs