felt-postcss
v0.1.0
Published
PostCSS plugin for Felt
Downloads
18
Readme
felt-postcss
PostCSS plugin for Felt.
Installation
$ npm install felt-postcss
Usage
const
express = require('express'),
felt = require('felt'),
postcss = require('felt-postcss'),
postcssImport = require('postcss-import'),
autoprefixer = require('autoprefixer')
const app = express()
app.use(felt({
src: 'public'
handlers: {
'.css': postcss({
plugins: [
postcssImport(),
autoprefixer()
],
options: {
map: { inline: false }
}
})
}
}))
app.use(express.static('public'))
app.listen(3000)