Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
gluestick-plugin-no-fouc
Advanced tools
Remove FOUC by extracting css into file and linking them to renderer page in development
gluestick-plugin-no-fouc
Removes Flash of Unstyled Content (FOUC) in development.
All styles will be extracted to a css file using ExtractTextWebpackPlugin
then, the file will be linked by server/renderer and added to <head>
element. It sits side-by-side with style-loader
, so you can still use HMR.
In production this plugin does nothing.
npm install --save gluestick-plugin-no-fouc
src/gluestick.plugins.js
:export default [
'gluestick-plugin-no-fouc'
]
// or
export default [
{
plugin: 'gluestick-plugin-no-fouc',
options: {
filename: '[name].fouc-reducer.css'
},
},
]
filename
: string
(default: [name]-[contenthash].init-no-fouc.css
) - name of the file to which all styles will be extracted, can contain webpack tokens eg: [name]
, [hash]
, [contenthash]
and so onFAQs
Remove FOUC by extracting css into file and linking them to renderer page in development
The npm package gluestick-plugin-no-fouc receives a total of 21 weekly downloads. As such, gluestick-plugin-no-fouc popularity was classified as not popular.
We found that gluestick-plugin-no-fouc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.