mirror of
https://github.com/jenil/chota.git
synced 2023-08-10 21:13:07 +03:00
1430bfe73a
* add linter and format files * remove custom scrollbar css * add caniuse * add stylelint to test cmd * revert test file change
20 lines
460 B
JavaScript
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,
|
|
};
|