Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terminal42/contao-webpack-encore
Adds Symfony Webpack Encore integration to Contao page layouts.
https://github.com/terminal42/contao-webpack-encore
Last synced: 23 days ago
JSON representation
Adds Symfony Webpack Encore integration to Contao page layouts.
- Host: GitHub
- URL: https://github.com/terminal42/contao-webpack-encore
- Owner: terminal42
- License: mit
- Created: 2021-09-10T17:16:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-08T11:21:59.000Z (8 months ago)
- Last Synced: 2024-08-09T17:11:56.573Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# terminal42/contao-webpack-encore
`terminal42/contao-webpack-encore` is an extension for the [Contao CMS](https://contao.org).
It allows you to integrate Encore entrypoints into Contao, either through the page layout,
through .html5-Template methods or through insert tags.If you use Twig templates, you can use the regular Symfony Encore Bundle features.
## Installation
Choose the installation method that matches your workflow!
### Installation via Contao Manager
Search for `terminal42/contao-webpack-encore` in the Contao Manager and add it
to your installation. Apply changes to update the packages.### Manual installation
Add a composer dependency for this bundle. Therefore, change in the project root and run the following:
```bash
composer require terminal42/contao-webpack-encore
```Depending on your environment, the command can differ, i.e. starting with `php composer.phar …` if you do not have
composer installed globally.Then, update the database via the `contao:migrate` command or the Contao install tool.
## Configuration
The Contao Manager Plugin will automatically try to detect an `entrypoints.json` in your public web directory.
If none is found, or you would like to manually configure it, adjust the Symfony `webpack_encore.output_path`
accordingly: https://symfony.com/bundles/WebpackEncoreBundle/current/index.html## License
This bundle is released under the [MIT license](LICENSE)