mirror of https://github.com/msgbyte/tailchat
				
				
				
			chore: tailwindcss and react
							parent
							
								
									b41556ef96
								
							
						
					
					
						commit
						b4a356e730
					
				@ -0,0 +1,10 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html>
 | 
			
		||||
  <head>
 | 
			
		||||
    <meta charset="utf-8"/>
 | 
			
		||||
    <title><%= htmlWebpackPlugin.options.title %></title>
 | 
			
		||||
  </head>
 | 
			
		||||
  <body>
 | 
			
		||||
    <div id="app"></div>
 | 
			
		||||
  </body>
 | 
			
		||||
</html>
 | 
			
		||||
@ -0,0 +1,6 @@
 | 
			
		||||
module.exports = {
 | 
			
		||||
  plugins: [
 | 
			
		||||
    'tailwindcss',
 | 
			
		||||
    'autoprefixer',
 | 
			
		||||
  ]
 | 
			
		||||
}
 | 
			
		||||
@ -0,0 +1,5 @@
 | 
			
		||||
import React from 'react';
 | 
			
		||||
 | 
			
		||||
export const App: React.FC = React.memo(() => {
 | 
			
		||||
  return <div className="m-4">Hello World</div>;
 | 
			
		||||
});
 | 
			
		||||
@ -1 +1,7 @@
 | 
			
		||||
console.log('Hello World');
 | 
			
		||||
import React from 'react';
 | 
			
		||||
import ReactDOM from 'react-dom';
 | 
			
		||||
import { App } from './App';
 | 
			
		||||
 | 
			
		||||
import 'tailwindcss/tailwind.css';
 | 
			
		||||
 | 
			
		||||
ReactDOM.render(React.createElement(App), document.querySelector('#app'));
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,11 @@
 | 
			
		||||
// tailwind.config.js
 | 
			
		||||
// Reference: https://www.tailwindcss.cn/docs/configuration
 | 
			
		||||
module.exports = {
 | 
			
		||||
  purge: [],
 | 
			
		||||
  darkMode: false, // or 'media' or 'class'
 | 
			
		||||
  theme: {
 | 
			
		||||
    extend: {},
 | 
			
		||||
  },
 | 
			
		||||
  variants: {},
 | 
			
		||||
  plugins: [],
 | 
			
		||||
}
 | 
			
		||||
					Loading…
					
					
				
		Reference in New Issue