Skip to content

Commit

Permalink
Fix registering the example text block
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Mar 22, 2017
1 parent b95c775 commit e5f72ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/editor/blocks/text-block/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
wp.blocks.registerBlock( 'wp', 'Text', {
wp.blocks.registerBlock( 'wp/text', {
edit( state, onChange ) {
return wp.element.createElement( wp.blocks.Editable, {
value: state.value,
Expand Down
5 changes: 5 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ const config = {
]
},
plugins: [
new webpack.DefinePlugin( {
'process.env': {
NODE_ENV: JSON.stringify( process.env.NODE_ENV )
}
} ),
new webpack.LoaderOptionsPlugin( {
minimize: process.env.NODE_ENV === 'production',
debug: process.env.NODE_ENV !== 'production',
Expand Down

0 comments on commit e5f72ca

Please sign in to comment.