Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit f025e39

Browse files
committed
Remove purgecss config from postcss.config.js
1 parent 9443283 commit f025e39

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

postcss.config.js

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,13 @@
1-
let environment = {
1+
module.exports = {
22
plugins: [
3+
require('tailwindcss')("./app/javascript/stylesheets/tailwind.config.js"),
34
require('postcss-import'),
4-
require('tailwindcss')('./app/javascript/stylesheets/tailwind.config.js'),
5-
require('autoprefixer'),
65
require('postcss-flexbugs-fixes'),
76
require('postcss-preset-env')({
87
autoprefixer: {
98
flexbox: 'no-2009'
109
},
1110
stage: 3
12-
}),
13-
]
14-
}
15-
16-
if (process.env.RAILS_ENV === "production") {
17-
environment.plugins.push(
18-
require('@fullhuman/postcss-purgecss')({
19-
content: ['./app/**/*.html.erb', '.app/helper/*.rb'],
20-
safelist: {
21-
greedy: [/input|prose$/],
22-
},
23-
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || []
2411
})
25-
)
12+
]
2613
}
27-
28-
module.exports = environment

0 commit comments

Comments
 (0)