Skip to content

Commit

Permalink
Move PostCSS config to webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
raducristianpopa committed Dec 20, 2023
1 parent 7fe2866 commit ec3182f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
6 changes: 0 additions & 6 deletions postcss.config.js

This file was deleted.

18 changes: 16 additions & 2 deletions webpack.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import path from 'path'
import TerserPlugin from 'terser-webpack-plugin'

import {
Expand All @@ -17,7 +18,6 @@ import {
getResolves,
getZipPlugins,
} from './webpack.config.utils'
import path from 'path'

let generalConfig: any = {
mode:
Expand All @@ -27,7 +27,21 @@ let generalConfig: any = {
{
test: /\.css$/i,
include: path.resolve(__dirname, 'src'),
use: ['style-loader', 'css-loader', 'postcss-loader'],
use: [
'style-loader',
'css-loader',
{
loader: 'postcss-loader',
options: {
postcssOptions: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
},
},
],
},
{
test: /\.(js|jsx|ts|tsx)$/,
Expand Down

0 comments on commit ec3182f

Please sign in to comment.