Update to Tailwind 3; support normal tailwind usage without twin.macro

This commit is contained in:
DaneEveritt 2022-06-05 14:34:29 -04:00
parent 21ca91abd0
commit 921da09a63
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
9 changed files with 1262 additions and 467 deletions

View file

@ -26,12 +26,30 @@ module.exports = {
rules: [
{
test: /\.tsx?$/,
exclude: /node_modules/,
exclude: /node_modules|\.spec\.tsx?$/,
loader: 'babel-loader',
},
{
test: /\.css$/,
use: [ 'style-loader', 'css-loader' ],
use: [
{ loader: 'style-loader' },
{
loader: 'css-loader',
options: {
modules: {
auto: true,
localIdentName: isProduction ? '[name]_[hash:base64:8]' : '[path][name]__[local]',
localIdentContext: path.join(__dirname, 'resources/scripts/components'),
},
sourceMap: !isProduction,
importLoaders: 1,
},
},
{
loader: 'postcss-loader',
options: { sourceMap: !isProduction },
},
],
},
{
test: /\.(png|jp(e?)g|gif)$/,