From eed8af3bd42fec64959885272af33a6c8b6c74bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Fri, 13 Aug 2021 17:48:46 +0200 Subject: [PATCH] Simplify postcss config --- postcss.config.js | 6 ------ webpack.config.js | 17 +++++++++++++++-- 2 files changed, 15 insertions(+), 8 deletions(-) delete mode 100644 postcss.config.js diff --git a/postcss.config.js b/postcss.config.js deleted file mode 100644 index 07ba3e2d..00000000 --- a/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - plugins: [ - require('tailwindcss'), - require('autoprefixer'), - ] -}; diff --git a/webpack.config.js b/webpack.config.js index c6510581..f3b73382 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -21,7 +21,14 @@ Encore .enableVersioning(Encore.isProduction()) .enableSourceMaps(!Encore.isProduction()) .cleanupOutputBeforeBuild() - .enablePostCssLoader() + .enablePostCssLoader(options => { + options.postcssOptions = { + plugins: [ + require('tailwindcss'), + require('autoprefixer'), + ], + } + }) .copyFiles([ { from: './public/typo3conf/ext/ep_theme/Resources/Private/Assets/images', to: 'images/[name].[ext]' }, { from: './public/typo3conf/ext/ep_theme/Resources/Private/Assets/images/icons', to: 'images/icons/[name].[ext]' }, @@ -70,7 +77,13 @@ Encore .autoProvidejQuery() .enableSourceMaps(!Encore.isProduction()) .cleanupOutputBeforeBuild() - .enablePostCssLoader() + .enablePostCssLoader(options => { + options.postcssOptions = { + plugins: [ + require('autoprefixer'), + ], + } + }) .configureFilenames({ js: 'js/[name].js', css: 'css/[name].css',