【文件属性】:
文件名称:posthtml-postcss:PostCSS插件
文件大小:120KB
文件格式:ZIP
更新时间:2021-05-17 05:08:48
JavaScript
PostCSS插件
在HTML中使用
安装
npm i -D posthtml-postcss
用法
const { readFileSync } = require ( 'fs' )
const posthtml = require ( 'posthtml' )
const postcss = require ( 'posthtml-postcss' )
const postcssPlugins = [ ]
const postcssOptions = { }
const filterType = / ^ text \/ css $ /
const filePath = ` ${ __dirname } /index.html` ;
const html = readFileSync ( filePath , 'utf8' )
posthtml ( [ postcss ( postcs
【文件预览】:
posthtml-postcss-master
----.gitignore(78B)
----.c8rc(34B)
----.github()
--------workflows()
--------funding.yml(639B)
----test()
--------mocha.opts(31B)
--------test.js(5KB)
----package.json(1KB)
----readme.md(4KB)
----changelog.md(8KB)
----index.js(2KB)
----.clintonrc.json(195B)
----xo.config.js(112B)
----.lintstagedrc(49B)
----.huskyrc(160B)
----.npmignore(99B)
----.editorconfig(335B)
----license(1KB)
----package-lock.json(479KB)