cssnext

    0熱度

    3回答

    我使用postcss-cssnext,在我webpack.config我刪除autoprefixer postcss: [autoprefixer({ browsers: ['last 2 versions'] }) ], ,其中包括cssnext。我知道cssnext已經包含autoprefixer,所以我們不需要兩者都包含在內。我只是想知道我是如何將browserslist傳遞給cssne

    2熱度

    2回答

    我只是想知道什麼是最好的方法來使用cssnext這樣的自定義屬性,以及反應中的css模塊。 有沒有一種方法可以跨模塊共享這些內容? :root{ --primary: pink; --fontSize: 1rem; --fullWidth: 100%; --color: red; --gutter: 1.618rem; } @custom-me