ipatate / example-webpack-symfony-3

Example Symfony project with webpack 3 builder for CSS and JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Example Symfony project with webpack 3 builder for CSS and JS


Languages

Language:PHP 86.6%Language:JavaScript 5.0%Language:ApacheConf 4.8%Language:CSS 2.6%Language:HTML 1.0%