Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ fs.readFile(inputFile, (err, css) => {

postcss([
tailwind(config),
require('./removeUnsupported'),
require('./expandAnimations'),
require('./index'),
])
.process(css, {
from: inputFile,
Expand Down
324 changes: 320 additions & 4 deletions dist/tailwind.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tailwind.css.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions expandAnimations.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ module.exports = (options = { debug: false }) => {
// with animation-*:
if (decl.prop === "animation") {
const styles = parseSingle(decl.value);
if (styles.duration && Number.isInteger(styles.duration)) {
styles.duration = `${styles.duration / 1000}s`;
}
Object.entries(styles)
.filter(([, value]) => typeof value === "object")
.map(([key, value]) => [
Expand Down
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const postcss = require('postcss')

module.exports = postcss([
require('./removeUnsupported'),
require('./expandAnimations'),
]);
Loading