PostCSS

Learn how to customize PostCSS within your project

PostCSS is enabled by default within your Frontal project, it is configured with the postcss-preset-env which in turn enables the autoprefixer.

However, if you are looking forward to customizing PostCSS, create a postcss.config.js file within the root directory of your project with the following contents:

module.exports = () => ({
  plugins: [
    require('autoprefixer')
  ]
});

The above configuration example requires you to install the required package within your project

$ npm install autoprefixer

The same goes for any other PostCSS plugin you need to work with.

Note that if require() was unable to locate the package, you can try require.resolve('...') instead.
Would You Like To KnowAbout Our Next Products & Free Tools?