This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/source/_posts/using-the-pcss-extension-with-webpack-encore.md
2020-03-29 15:30:43 +01:00

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
webpack
encore
postcss
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())