-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtsdx.config.js
47 lines (46 loc) · 1.24 KB
/
tsdx.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
const path = require('path');
const postcss = require('rollup-plugin-postcss');
const autoprefixer = require('autoprefixer');
const tailwindcss = require('tailwindcss');
module.exports = {
rollup(config, options) {
config.plugins.push(
postcss({
plugins: [
tailwindcss({
content: ['./src/**/*.{ts,tsx}'],
theme: {
colors: {
'like-green': {
DEFAULT: '#28646e',
},
'like-cyan': {
lightest: '#d7ecec',
light: '#aaf1e7',
DEFAULT: '#50e3c2',
},
black: '#000',
gray: {
dark: '#4a4a4a',
DEFAULT: '#9b9b9b',
light: '#ebebeb',
lightest: '#f7f7f7',
},
white: '#fff',
red: '#e35050',
},
extend: {},
},
plugins: [],
prefix: 'lk-',
}),
autoprefixer(),
],
minimize: !!options.minify || options.env === 'production',
inject: false,
extract: path.resolve('dist/style.css'),
})
);
return config;
},
};