Plugins like postcss-simple-vars or postcss-properties etc allow variables to be specified. These variables are usually imported from other files. Even though webpack reloads when postcss.config.js is modifier, the same doesn't happen for variable files imported in postcss.config.js. Is there a way to access loader.addDependency so that imported files can be added manually? Or is there another way to achieve this?
Problem
Plugins like
postcss-simple-vars
orpostcss-properties
etc allow variables to be specified. These variables are usually imported from other files. Even though webpack reloads whenpostcss.config.js
is modifier, the same doesn't happen for variable files imported inpostcss.config.js
. Is there a way to accessloader.addDependency
so that imported files can be added manually? Or is there another way to achieve this?