Prepare working with authentication and Tailwind
This commit is contained in:
@@ -1,7 +1,19 @@
|
||||
module.exports = {
|
||||
plugins: [
|
||||
require('postcss-import'),
|
||||
require('postcss-nesting'),
|
||||
require('autoprefixer'),
|
||||
],
|
||||
/**
|
||||
* PostCSS configuration
|
||||
*/
|
||||
const config = {
|
||||
plugins: [require("postcss-import"), require("@tailwindcss/postcss")],
|
||||
};
|
||||
|
||||
// Add more modules to production
|
||||
if (process.env.RAILS_ENV === "production") {
|
||||
config.plugins.push(
|
||||
require("cssnano")({ preset: "default" }),
|
||||
require("autoprefixer"),
|
||||
require("postcss-nested"),
|
||||
require("postcss-flexbugs-fixes"),
|
||||
);
|
||||
}
|
||||
|
||||
// Export config file
|
||||
module.exports = config;
|
||||
|
||||
Reference in New Issue
Block a user