Unverified Commit 99487887 authored by Andrei Eres's avatar Andrei Eres Committed by GitHub
Browse files

Add support for tailwind (#115)

parent 11b01a8c
Pipeline #189757 passed with stages
in 1 minute and 58 seconds
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
......@@ -46,7 +46,7 @@ const AutosizeInput: React.FC<Props> = ({
onChange={handleChange}
{...rest}
/>
<span className='border' />
<span className='bordered' />
</div>
)
}
......@@ -75,7 +75,7 @@ export default styled(AutosizeInput)`
pointer-events: none;
}
.border {
.bordered {
position: absolute;
right: 0;
bottom: 0;
......
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--size-max-width: 600px;
--size-max-height: 600px;
......
module.exports = {
content: ['./src/**/*.tsx'],
theme: {
extend: {},
},
plugins: [],
}
......@@ -40,29 +40,7 @@ module.exports = (env, argv) => ({
},
{
test: /\.css$/i,
use: [
'style-loader',
{
loader: 'css-loader',
options: {
importLoaders: 1,
modules: {
localIdentName:
argv.mode === 'production'
? '[hash:base64]'
: '[name]__[local]__[hash:base64]',
},
},
},
{
loader: 'postcss-loader',
options: {
postcssOptions: {
plugins: ['postcss-preset-env'],
},
},
},
],
use: ['style-loader', 'css-loader', 'postcss-loader'],
},
{
test: [/\.svg$/, /\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/, /\.woff2?$/],
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment