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?
某草草2017-06-26 10:58:55
Wouldn’t it be better to extract the css
extract-text-webpack-plugin
Use this webpack plugin
GitHub address