The CSS can be imported into the “global” JS file now
This commit is contained in:
Kelly Dwan 2019-06-10 12:47:14 -04:00 committed by GitHub
parent 3432d0f283
commit 75ec6a48c2
2 changed files with 2 additions and 3 deletions

View File

@ -7,6 +7,8 @@ import { __ } from '@wordpress/i18n';
/**
* Internal dependencies
*/
import '../css/editor.scss';
import '../css/style.scss';
import { IconWoo } from './components/icons';
setCategories( [

View File

@ -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)',