Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

enable JS File loading from public folders to increase performance in development #77

@lautr

Description

@lautr

We are having the Issue that we use a lot of modules ( 20+ per page ), and since all of them in dev mode are loaded via PHP, this slows development ( especially if you develop in Vagrant like we do ) down considerably, we ether run in timeouts or have to wait forever before all modules are loaded.

As a Solution i would like to be able to load the modules directly form their public folders bypassing PHP / Symfony2 like:

require([
    '/bundles/acmebundle/js/module1.js',
    '/bundles/acmebundle/js/module2.js'
],
    function (module1, module2) {
        'use strict';
        // code
    }
);

This works in dev but breaks on assetic dump.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions