[question] How to forbid embedding <link> to <head>
See original GitHub issueI’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:
- Created 5 years ago
- Comments:7
Top GitHub Comments
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.
Of course 😋