Add draft post
This commit is contained in:
parent
fdad76d757
commit
a14aa34897
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
title: Using the pcss extension with Webpack Encore
|
||||||
|
excerpt: How to use the .pcss file extension for PostCSS files with Webpack Encore
|
||||||
|
date: 2020-03-29
|
||||||
|
tags: [webpack, encore, postcss]
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
||||||
|
```js
|
||||||
|
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())
|
||||||
|
```
|
Reference in a new issue