Warning: You are browsing the documentation for Symfony 4.3, which is no longer maintained.
Read the updated version of this page for Symfony 6.0 (the current stable version).
So what are the differences between Assetic and Encore?
|Language||Pure PHP, relies on other language tools for some tasks||Node.js|
|Minify assets?||Yes (when configured)||Yes (out-of-the-box)|
|Loads JS Modules? _||No||Yes|
|Load CSS dependencies in JS? ||No||Yes|
|React, Vue.js support?||No _||Yes|
|Support||Not actively maintained||Actively maintained|
called modules and import them:
1 2 3 4 5
// require third-party modules var $ = require('jquery'); // require your own CoolComponent.js modules var coolComponent = require('./components/CoolComponent');
- ..  Assetic has outdated support for React.js only. Encore ships with modern
- support for React.js, Vue.js, TypeScript, etc.
If you already have Assetic working in an application, and haven't needed any of the features that Encore offers over Assetic, continuing to use Assetic is fine. If you do start to need more features, then you might have a business case for changing to Encore.