1
0
mirror of https://github.com/jenil/chota.git synced 2023-08-10 21:13:07 +03:00
chota/postcss.config.js
Jenil Gogari 1430bfe73a
Jenil/linter (#92)
* add linter and format files

* remove custom scrollbar css

* add caniuse

* add stylelint to test cmd

* revert test file change
2023-03-20 23:57:54 -04:00

20 lines
460 B
JavaScript

let plugins = [
require("postcss-import")({
plugins: [require("stylelint")({ fix: true, formatter: "compact" })],
}),
require("autoprefixer")(),
require("postcss-reporter")({ clearReportedMessages: true }),
];
// if (process.env.NODE_ENV == 'production') plugins.push(require("postcss-csso"))
if (process.env.NODE_ENV == "production")
plugins.push(
require("cssnano")({
preset: "default",
})
);
module.exports = {
plugins,
};