将postcss与rollupjs一起用于index.html中包含的global.css文件

时间:2019-10-04 18:59:33

标签: rollup postcss svelte

我正在尝试将global.css文件处理为具有汇总和苗条的postcss。

import postcss from 'rollup-plugin-postcss';

    input: ['src/main.js', 'public/styles/global.css'],


        postcss({
            config: {
                path: '.postcssrc.js'
            }
        }),

运行npm run dev

时出现错误
rollup v1.21.4
bundles src/main.js, public/styles/global.css → public/bundle.js...
[!] Error: UMD and IIFE output formats are not supported for code-splitting builds.

0 个答案:

没有答案