Skip to content

Commit b3bb3de

Browse files
committed
fix(styles): Move generated styles to styles.css for easier importing
1 parent 1959c77 commit b3bb3de

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

postcss.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
'backgroundColor',
88
'display',
99
'flex',
10+
'flexDirection',
1011
'inset',
1112
'justifyContent',
1213
'margin',

tsdx.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
const postcss = require('rollup-plugin-postcss');
2+
const tailwindcss = require('tailwindcss');
3+
const autoprefixer = require('autoprefixer');
4+
const cssnano = require('cssnano');
25

36
module.exports = {
47
rollup(config, options) {
58
config.plugins.push(
69
postcss({
710
inject: false,
811
// only write out CSS for the first bundle (avoids pointless extra files):
9-
extract: !!options.writeMeta,
12+
extract: `${__dirname}/dist/styles.css`,
13+
plugins: [tailwindcss(), autoprefixer(), cssnano()],
1014
})
1115
);
1216
return config;

0 commit comments

Comments
 (0)