We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b95c775 commit e5f72caCopy full SHA for e5f72ca
modules/editor/blocks/text-block/index.js
@@ -1,4 +1,4 @@
1
-wp.blocks.registerBlock( 'wp', 'Text', {
+wp.blocks.registerBlock( 'wp/text', {
2
edit( state, onChange ) {
3
return wp.element.createElement( wp.blocks.Editable, {
4
value: state.value,
webpack.config.js
@@ -64,6 +64,11 @@ const config = {
64
]
65
},
66
plugins: [
67
+ new webpack.DefinePlugin( {
68
+ 'process.env': {
69
+ NODE_ENV: JSON.stringify( process.env.NODE_ENV )
70
+ }
71
+ } ),
72
new webpack.LoaderOptionsPlugin( {
73
minimize: process.env.NODE_ENV === 'production',
74
debug: process.env.NODE_ENV !== 'production',
0 commit comments