File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -241,12 +241,15 @@ module.exports = {
241241Then create ` postcss.config.js ` :
242242
243243``` js
244- module .exports = {
244+ /** @type {import('postcss-load-config').Config} */
245+ const config = {
245246 plugins: [
246247 require (' autoprefixer' ),
247248 require (' postcss-nested' )
248249 ]
249250}
251+
252+ module .exports = config
250253```
251254
252255[ `astroturf` ] : https://github.com/4Catalyzer/astroturf
@@ -259,12 +262,15 @@ and cssnano. If you want to change plugins, create `postcss.config.js`
259262in project’s root:
260263
261264``` js
262- module .exports = {
265+ /** @type {import('postcss-load-config').Config} */
266+ const config = {
263267 plugins: [
264268 require (' autoprefixer' ),
265269 require (' postcss-nested' )
266270 ]
267271}
272+
273+ module .exports = config
268274```
269275
270276Parcel will even automatically install these plugins for you.
@@ -308,12 +314,15 @@ module.exports = {
308314Then create ` postcss.config.js ` :
309315
310316``` js
311- module .exports = {
317+ /** @type {import('postcss-load-config').Config} */
318+ const config = {
312319 plugins: [
313320 require (' autoprefixer' ),
314321 require (' postcss-nested' )
315322 ]
316323}
324+
325+ module .exports = config
317326```
318327
319328[ `postcss-loader` ] : https://github.com/postcss/postcss-loader
You can’t perform that action at this time.
0 commit comments