Skip to content
An example of using Parcel.js with Symfony 4 and Twig templates
PHP HTML JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
public
scripts
src
styles
templates
tests
translations
.env
.env.test
.gitignore
README.md
composer.json
composer.lock
package-lock.json
package.json
phpunit.xml.dist
symfony.lock

README.md

An example of using Parcel.js with Symfony 4 and the Twig templating system

Purpose

I made this project as part of a tutorial that describes how to use Parcel.js with Symfony 4 and the Twig templating system.

NOTE: this project has only been tested on OSX.

Instructions

Prerequisites

  • A local installation of the Composer dependency manager
  • A local installation of the latest stable NodeJs

Install dependencies

Navigate to the project root and run the following command:

composer install
npm install
npm install parcel-bundler -g

Running the project in development mode (including file watching)

composer run-local-dev

Your project should be available at http://localhost:8000

Running the project in production mode (minification, but no file watching)

composer run-local-prod

Your project should be available at http://localhost:8000

You can’t perform that action at this time.