Simplify postcss config

This commit is contained in:
Björn Fromme
2021-08-13 17:48:46 +02:00
parent c188a19a16
commit eed8af3bd4
2 changed files with 15 additions and 8 deletions
+15 -2
View File
@@ -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',