question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] How to forbid embedding <link> to <head>

See original GitHub issue

I’m working on react-static website static generator. Currently we running Webpack two times, first time for browser, second for SSR, to achieve fastest generated content. It works fine, cos we using 2 Webpack configs, and running it in parallel.

By default we using extract-css-chunks-webpack-plugin only in browser Webpack config, but in case of CSS modules, we need to run extract-css-chunks-webpack-plugin second time, which results in double css file declaration in <head>.

The question is: how to forbid extract-css-chunks-webpack-plugin to embed style to <head> ?

Both files has same hash and file name, but for browser config we made custom wrapper, which makes src full url path (with https://domain.name/, instead of local paths provided by extract-css-chunks-webpack-plugin, and we are adding <link rel='preload'>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
JustFly1984commented, Nov 4, 2018

I’m not a big company and this project is based on opensource. I believe you have good reputation and will remove copy of my repo from your hard drive.

0reactions
ScriptedAlchemycommented, Nov 4, 2018

Of course 😋

Read more comments on GitHub >

github_iconTop Results From Across the Web

disable iframe embedding for other websites - Stack Overflow
I would suggest you to use the X-Frame-Options header. If you are using nginx you can add this line in the server or...
Read more >
Protect Your Website From Its Embedded Content With iFrames
The best thing you can do to protect yourself is to prevent your site from being embedded as an iframe. These days every...
Read more >
<iframe>: The Inline Frame element - HTML - MDN Web Docs
The <iframe> HTML element represents a nested browsing context, embedding another HTML page into the current one.
Read more >
Best practices for using third-party embeds - web.dev
This article discusses performance best practices that you can use when loading third-party embeds, efficient loading techniques and the ...
Read more >
Insert Media - Qualtrics
Block Options · Loop & Merge · Question Randomization ... Mobile Embedded Feedback · Pop Over Creative · Info Bar Creative · Embedded...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found