- Composer
- NPM
$ git clone https://github.com/alOneh/sf-live-2017-symfony-webpack
$ cd sf-live-2017-symfony-webpack
$ composer install --no-interaction
$ npm install
There is no need to configure a virtual host in your web server to access the application. Just use the built-in web server:
$ php bin/console server:run
This command will start a web server for the Symfony application. Now you can
access the application in your browser at http://localhost:8000. You can
stop the built-in web server by pressing Ctrl + C
while you're in the
terminal.
To start the Webpack Dev Server:
$ npm run watch
To build assets with Webpack:
$ npm run build
This Webpack configuration is very simple, no configuration split between dev and prod env. You can find an advanced configuration here.
- Docker integration for Symfony and Webpack