Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
I've been attempting to upgrade by webpack-encore from 0.31.1 to 1.8.2 (wepack 4 to webpack 5) so as to be able to have the 'defer' tag included on the <script> html elements for encore_scripts. Having finally got the application to build (npm run dev) with webpack 1.8.2 I'm disappointed to see that the 'defer' tags are not being generated.
I tried installing webpack-encore-bundle on top of my existing packages, as per article here . This has created a webpack_encore.yaml file which includes "script_attributes: defer: true" but this has made do difference. Presumably this is because webpack is using my webpack.config.js file and ignoring webpack_encore.yaml.
Is there some way of configuring this in webpack.config.js, how can I get this working?
defer get added if you use encore_entry_script_tags in your Twig template. This function comes with the WebpackEncoreBundle so you probably don’t call it since you did not install the bundle before.
Add a bulleted list, <Ctrl+Shift+8>Add a numbered list, <Ctrl+Shift+7>Add a task list, <Ctrl+Shift+l>
Directly mention a user or teamReference an issue or pull request
Add heading textAdd bold text, <Ctrl+b>Add italic text, <Ctrl+i>Add a bulleted list, <Ctrl+Shift+8>Add a numbered list, <Ctrl+Shift+7>Add a task list, <Ctrl+Shift+l>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
You can’t perform that action at this time.
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.
-
I've been attempting to upgrade by webpack-encore from 0.31.1 to 1.8.2 (wepack 4 to webpack 5) so as to be able to have the 'defer' tag included on the <script> html elements for encore_scripts. Having finally got the application to build (npm run dev) with webpack 1.8.2 I'm disappointed to see that the 'defer' tags are not being generated.
I tried installing webpack-encore-bundle on top of my existing packages, as per article here . This has created a webpack_encore.yaml file which includes "script_attributes: defer: true" but this has made do difference. Presumably this is because webpack is using my webpack.config.js file and ignoring webpack_encore.yaml.
Is there some way of configuring this in webpack.config.js, how can I get this working?
Beta Was this translation helpful? Give feedback.