rollup-plugin-postcss-modules:内置CSS模块和TypeScript支持的rollup-plugin-postcss包装器

时间:2021-05-24 23:06:44
【文件属性】:
文件名称:rollup-plugin-postcss-modules:内置CSS模块和TypeScript支持的rollup-plugin-postcss包装器
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-24 23:06:44
TypeScript 汇总插件postcss模块 使用选项modules: { ... }将传递到插件。 使用rollup-plugin-postcss 2.0时,此功能唯一的持续优势是对TypeScript的支持。 存在一个新选项: writeDefinitions: true在每个已处理的.css文件旁边创建.css.d.ts文件。 默认的namedExports选项也略有不同: .class-name { ... } .switch { ... }被转换为类似 export const className = 'class-name' export const $switch$ = 'switch' export default { 'class-name' : 'class-name' , className : 'class-name' , 'switch' : 'switch' ,
【文件预览】:
rollup-plugin-postcss-modules-master
----.eslintrc.json(424B)
----index.ts(3KB)
----.vscode()
--------settings.json(111B)
----.npmignore(53B)
----.travis.yml(125B)
----tsconfig.json(548B)
----test()
--------fixtures()
--------fixtures.js(2KB)
----README.md(2KB)
----typings()
--------postcss-modules.d.ts(1KB)
----.gitignore(107B)
----package.json(2KB)

网友评论