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',