javascript - webpack packages css causing page loading styles to be slow FOUC
三叔
三叔 2017-06-26 10:56:55
0
1
849

After using webpack to package js and css, insert bundle.js at the bottom of the homepage, because css is not placed in head, so when you open the page, it needs to flash for a while to have the style.
How should this be solved?

三叔
三叔

reply all(1)
某草草

Wouldn’t it be better to extract the css

extract-text-webpack-plugin

Use this webpack plugin

GitHub address

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template