Skip to content

v1.2.2

Compare
Choose a tag to compare
@ubermanu ubermanu released this 16 Sep 18:19
· 157 commits to main since this release
fb65350

Remove unnecessary plugins that required multiple peer dependencies

  • react > babel
  • cssnano > postcss
  • tailwindcss > postcss

Now just use postcss (or babel) and implement your logic manually:

import postcss from 'magefront-plugin-postcss'
import tailwindcss from 'tailwindcss'

export default {
    plugins: [
        postcss({
            src: 'css/tailwind.pcss',
            plugins: [tailwindcss(/* your config */)]
        })
    ]
}

Deprecated:

  • magefront-plugin-cssnano
  • magefront-plugin-react
  • magefront-plugin-tailwindcss
  • magefront-plugin-pngquant
  • magefront-plugin-svgo

Added:

  • magefront-plugin-imagemin
  • magefront-preset-optimize