Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

May be boost postcss instead of scss and less? #59

Closed
NikitaIT opened this issue Nov 9, 2021 · 0 comments
Closed

May be boost postcss instead of scss and less? #59

NikitaIT opened this issue Nov 9, 2021 · 0 comments

Comments

@NikitaIT
Copy link

NikitaIT commented Nov 9, 2021

Look at https://preset-env.cssdb.org/features

postcss.config.cjs
// See https://cssdb.org/
const stage = {
  experimental: 0, // This is a crazy idea. Unofficial Draft
  aspirational: 1, // This idea might not be crazy. Editor’s Draft
  allowable: 2, // This idea is not crazy. Working Draft
  embraced: 3, // This idea is becoming part of the web. Candidate Recommendation
  standardized: 4, // This idea is part of the web. Recommendation
};

module.exports = {
  plugins: [
    require("postcss-import"), // css @import
    require("postcss-focus-visible"),
    require("postcss-preset-env")({
	stage: stage.aspirational,
	preserve: false,
	"nesting-rules": true,
	autoprefixer: { grid: "autoplace" },
    }),
    require("cssnano")({
        preset: ["default", { discardComments: { removeAll: true } }],
    }),
    // preset-env includes all of this
    // require('postcss-nested'), // scss nested
    // require('postcss-custom-properties'), // transpile css properties for IE11
    // require('autoprefixer'), // prefix like webkit-*

  ],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants