Closed iuscare closed 3 years ago
This preset adds compression for css, js and html files. Following props are exposed to be used in the wingsuit.config.yml
Example configuration:
const namespaces = require('./source/default/namespaces'); module.exports = { presets: [ '@wingsuit-designsystem/preset-tailwind2', '@wingsuit-designsystem/preset-postcss8', '@wingsuit-designsystem/preset-compression', ], parameters: { compression: { gzipEnabled: true, brotliEnabled: false, }, }, designSystems: { default: { namespaces, }, }, };
The optimized files are only generated when running the build process of drupal.
This preset adds compression for css, js and html files. Following props are exposed to be used in the wingsuit.config.yml
Example configuration:
The optimized files are only generated when running the build process of drupal.