0.0.3 • Published 7 years ago
css-ssr v0.0.3
css-ssr
npm install --save css-ssr
Use the hook inside your server entry point.
import or require in your entrypoint.js (important)
server.js
import 'css-ssr'
import express from 'express'
import http from 'http'
// ...
You can also use an object inside package.json with the extensions that you need: (optional)
{
"name": "css-ssr",
"main": "./server.js",
"config": {
"css-ssr": {
"ext": [".css",".styl"]
}
}
// ...
}
By default the hook use these extensions: .css, .styl, .scss, .less