Deprecated: 関数 WP_Dependencies->add_data() がバージョン 6.9.0 から非推奨になった引数付きで呼び出されました。IE の条件付きコメントは、対応しているすべてのブラウザで無視されます。 in /home/artws/woo-japan.info/public_html/wp-includes/functions.php on line 6131

Deprecated: 関数 WP_Dependencies->add_data() がバージョン 6.9.0 から非推奨になった引数付きで呼び出されました。IE の条件付きコメントは、対応しているすべてのブラウザで無視されます。 in /home/artws/woo-japan.info/public_html/wp-includes/functions.php on line 6131
コンテンツへスキップ →

minification-of-SCSS-and-JS

Table of Contents

Handling SCSS and JS minification in WooCommerce

SCSS

WooCommerceプロジェクトでSCSSファイルを更新する場合、最小化されていないSCSSファイルにのみ変更をコミットしてください。最小化はリリースプロセスの一部として処理されます。

To get the minified CSS files, run pnpm --filter='@woocommerce/classic-assets' build from the repository root directory. To set up the development environment from scratch, see the section on how to install dependencies and generate assets in the guide to set up a WooCommerce development environment.

Javascript

JSファイルを変更する際は、最小化されていないファイル(つまり、読み取り可能なJSファイル)のみをコミットしてください。最小化はリリースプロセスの一部として処理されます。

To ensure you can test your changes, run with SCRIPT_DEBUG turned on, i.e. add define( 'SCRIPT_DEBUG', true ); to your wp-config.php file.