Remove the styles build target in webpack (https://github.com/woocommerce/woocommerce-blocks/pull/610)
The CSS can be imported into the “global” JS file now
This commit is contained in:
parent
3432d0f283
commit
75ec6a48c2
|
@ -7,6 +7,8 @@ import { __ } from '@wordpress/i18n';
|
|||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
import '../css/editor.scss';
|
||||
import '../css/style.scss';
|
||||
import { IconWoo } from './components/icons';
|
||||
|
||||
setCategories( [
|
||||
|
|
|
@ -53,8 +53,6 @@ const GutenbergBlocksConfig = {
|
|||
'product-top-rated': './assets/js/blocks/product-top-rated/index.js',
|
||||
'products-attribute': './assets/js/blocks/products-by-attribute/index.js',
|
||||
'featured-product': './assets/js/blocks/featured-product/index.js',
|
||||
// Global styles
|
||||
styles: [ './assets/css/style.scss', './assets/css/editor.scss' ],
|
||||
},
|
||||
output: {
|
||||
path: path.resolve( __dirname, './build/' ),
|
||||
|
@ -134,7 +132,6 @@ const GutenbergBlocksConfig = {
|
|||
new MergeExtractFilesPlugin( [
|
||||
'build/editor.js',
|
||||
'build/style.js',
|
||||
'build/styles.js',
|
||||
], 'build/vendors.js' ),
|
||||
new ProgressBarPlugin( {
|
||||
format: chalk.blue( 'Build' ) + ' [:bar] ' + chalk.green( ':percent' ) + ' :msg (:elapsed seconds)',
|
||||
|
|
Loading…
Reference in New Issue