pronnect/module-css-inline-sourcemap
最新稳定版本:v1.0.2
Composer 安装命令:
composer require pronnect/module-css-inline-sourcemap
包简介
Enable generating css inline source map
README 文档
README
The pronnect/module-inline-css-sourcemap module enhances Magento 2 with the ability to generate CSS source maps for inline CSS. This enables developers to more easily debug CSS and identify formatting issues.
Module Features:
- Generation of CSS source maps for inline CSS in Magento 2.
- Simplified CSS debugging and identification of formatting problems.
- Increased browser compatibility and accessibility.
- Improved overall frontend development and maintenance.
Development Installation:
composer req --dev pronnect/module-inline-css-sourcemap
Post-Installation:
- Activate the module
bin/magento module:enable Pronnect_CssInlineSourceMap bin/magento setup:upgrade
- Clear the Magento 2 cache.
Post-Installation (Development Only): Further Information:
- For more information about the module, please visit the GitHub page: https://github.com/pronnect/pronnect-magento2-module-inline-css-sourcemap
Important:
- This module is compatible with Magento 2 versions 2.3.x and 2.4.x.
- Back up your Magento 2 installation before installing the module.
Thank you for using the pronnect/module-inline-css-sourcemap module!
Enabling the Module in Developer Mode:
While the previous steps activate the module, in Magento 2 some developer-oriented settings might be disabled by default. To ensure all functionalities are available during development, consider these additional steps:
- Navigate to Stores > Configuration > Advanced > Developer.
- In the CSS Settings section, set Use CSS Inline Source Map Yes/No to enable/disable feature
- Click the Save Config button.
This section is relevant mainly for development installations (using composer req --dev).
Benefits of using CSS source maps:
- Improved Debugging: CSS source maps allow you to map inline CSS styles back to their original source files, making it easier to identify and fix formatting issues.
- Enhanced Browser Compatibility: By generating source maps, you can ensure that your inline CSS is compatible with a wider range of browsers, including older versions.
- Increased Accessibility: CSS source maps can improve the accessibility of your website by providing screen readers with additional information about the structure of your CSS.
- Better Development Workflow: Source maps can streamline your development workflow by allowing you to make changes to your CSS and see the results immediately without having to refresh the page.
Overall, the pronnect/module-inline-css-sourcemap module is a valuable tool for developers who want to improve the quality, compatibility, and accessibility of their Magento 2 websites.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2024-02-28