You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use the plugin you need to create an entrypoint in your webpack.config.js, run build, and add one of the twig functions to a template:
53
+
and add one of the twig functions to a template:
16
54
```html
55
+
{# ./templates/base.html.twig #}
56
+
{# ... #}
17
57
<head>
18
58
{{ encore_entry_script_tags('your_entry_name') }}
19
59
{{ encore_entry_link_tags('your_entry_name') }}
20
60
</head>
61
+
{# ... #}
21
62
```
22
63
23
64
Here is the signature of the twig functions:
@@ -29,7 +70,7 @@ Here is the signature of the twig functions:
29
70
30
71
If two or more entries contain common files, then they will be printed only once;
31
72
32
-
### Extra attributes
73
+
####Extra attributes
33
74
To add extra attribute to the tags, you can pass them in the array as a second argument, like this:
34
75
```html
35
76
<head>
@@ -43,17 +84,53 @@ and as a result, it will print next html (assuming your entrypoint 'app' contain
43
84
</head>
44
85
```
45
86
87
+
## Change Log
88
+
89
+
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
90
+
91
+
## Testing
92
+
93
+
```bash
94
+
composer test
95
+
```
96
+
46
97
## Contributing
47
98
48
99
Please feel free to open pull request or create an issue, they are more than welcome!
49
100
50
-
## Authors
101
+
## Security
102
+
103
+
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
104
+
105
+
## Credits
106
+
107
+
-[Oleksii Bulba][link-author]
108
+
-[Fabien Potencier][email-fabien]
109
+
-[All Contributors][link-contributors]
51
110
52
111
The code was taken and adapted from `symfony/webpack-encore-bundle` that was created by [Symfony Community](https://symfony.com/contributors) and [Fabien Potencier](mailto:[email protected]) in particular.
53
-
Adapted for Micro framework plugin by Oleksii Bulba.
112
+
Adapted for Micro framework plugin by [Oleksii Bulba][link-author].
54
113
55
-
For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
114
+
For the full copyright and license information, please see the [License File](LICENSE.md) that was distributed with this source code.
56
115
57
116
## License
58
117
59
-
[MIT](https://opensource.org/licenses/MIT)
118
+
[The MIT License (MIT)][link-license]. Please see [License File](LICENSE.md) for more information.
0 commit comments