一覧へ戻る
koffeine/rollup-plugin-postcss(新しいタブで開きます)
主要言語: JavaScript
Rollup plugin for PostCSS
- star 数
- 0
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2021/10/23
主要言語: JavaScript
Rollup plugin for PostCSS
Rollup plugin for PostCSS
npm install @koffeine/rollup-plugin-postcss postcss --save-dev
import postcss from '@koffeine/rollup-plugin-postcss'; export default { plugins: [ postcss({ // which files should be processed by this plugin // type: regular expression, minimatch pattern or an array of regular expressions and minimatch patterns include: /\.css/u, // which files should not be processed by this plugin // type: regular expression, minimatch pattern or an array of regular expressions and minimatch patterns exclude: undefined, // whether or not to generate and save a sourcemap // type: boolean sourcemap: false, // transformation to apply to each source path in a sourcemap // type: (source: string, id: string) => string // source: sourcemap source // id: module id (as reported by Rollup) // returns: transformed path sourcemapPathTransform: (source) => path.relative(process.cwd(), source), // which PostCSS plugins to use // type: array of PostCSS plugins plugins: [], // where to save the output file which is a Rollup asset relative to output.dir (required) // type: string output: undefined }) ] };
Copyright © Kornél Horváth
Licensed under the MIT License.