Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Don't enforce CSS chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed Jul 4, 2019
1 parent 130eb81 commit 4442afd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ public static function init() {
* Register block scripts & styles.
*/
public static function register_assets() {
self::register_style( 'wc-packages', plugins_url( 'build/packages.css', __DIR__ ) );
self::register_style( 'wc-block-editor', plugins_url( 'build/editor.css', __DIR__ ), array( 'wp-edit-blocks', 'wc-packages' ) );
self::register_style( 'wc-block-editor', plugins_url( 'build/editor.css', __DIR__ ), array( 'wp-edit-blocks' ) );
self::register_style( 'wc-block-style', plugins_url( 'build/style.css', __DIR__ ), array( 'wp-components' ) );

// Shared libraries and components across all blocks.
Expand Down
2 changes: 0 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,12 @@ const GutenbergBlocksConfig = {
findModuleMatch( module, /[\\/]components[\\/]/ ) ),
name: 'editor',
chunks: 'all',
enforce: true,
priority: 10,
},
style: {
test: /style\.scss$/,
name: 'style',
chunks: 'all',
enforce: true,
priority: 5,
},
},
Expand Down

0 comments on commit 4442afd

Please sign in to comment.