/example-webpack-symfony-3

Example Symfony project with webpack 3 builder for CSS and JS

Primary LanguagePHP

Example Symfony project with webpack 3 builder for CSS and JS

webpack-dev-server and browser-sync are use for reload browser on change event for all files in project (js, scss, php or yaml)

Example use:

Webpack

All configs files are in webpack-builder directory.

Assets

Js and Css (sass) sources files are in assets directory

Build

The files after build process are in web/build directory

cmd

For init project

$ composer install
$ npm i

For dev

  • launch php server

    $ bin/console server:start
    
  • launch webpack server

    $ npm run dev
    
  • open your navigator to localhost:3000

For build

$ npm run build