connect-assets-cssprimer

0.1.3 • Public • Published

connect-assets-cssprimer

An NPM module that forces compilation of your css connect-assets without referencing them in a view.

Problems This Helps With

  • 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

Installation

npm install connect-assets-cssprimer

  • There is a dependency on CoffeeScript. If you want a straight javascript version, you can compile it easily yourself.

Usage

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

Contributors

Tim Costa

Copyright

Created by Tim Costa. MIT License; no attribution required.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    0
  • 0.1.2
    0
  • 0.1.1
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i connect-assets-cssprimer

Weekly Downloads

0

Version

0.1.3

License

MIT

Last publish

Collaborators

  • chalkup