572 B
572 B
title | excerpt | date | tags | draft | |||
---|---|---|---|---|---|---|---|
Using the pcss extension with Webpack Encore | How to use the .pcss file extension for PostCSS files with Webpack Encore | 2020-03-29 |
|
true |
Encore
.disableSingleRuntimeChunk()
.cleanupOutputBeforeBuild()
.setOutputPath('source/build/')
.setPublicPath('/build')
.addEntry('app', './assets/js/app.js')
.enablePostCssLoader()
.configureLoaderRule('css', loaderRule => {
loaderRule.test = /\.(css|p(ost)?css)$/
})
.enableSourceMaps(!Encore.isProduction())