Primes the CSS assets for a connect-assets instance during server initialization.
An NPM module that forces compilation of your css connect-assets without referencing them in a view.
- You are using requireJS and don't want to reference all your css files in the view.
- You have a css file that is dynamically loaded on your page but not in the view.
- You want to use the connect-assets-cdn library
npm install connect-assets-cssprimer
assets = require 'connect-assets' cssPrimer = require 'connect-assets-cssprimer' # Snip ... app.use assets() cssPrimer.loadFiles assets # Optionally, you can pass in a log function to see progress # cssPrimer.loadFiles assets, console.log
Created by Tim Costa. MIT License; no attribution required.