added Welcome page

changed settings API and page to React + rest
changed structure of scripts - different folders for editor and admin scripts
This commit is contained in:
Nikita 2023-08-05 16:01:44 +03:00
parent 5f489c933e
commit f1c3c698dc
66 changed files with 978 additions and 1286 deletions

View file

@ -1,9 +1,19 @@
/**
* External Dependencies
*/
const { resolve } = require('path');
const defaultConfig = require('@wordpress/scripts/config/webpack.config');
const isProduction = process.env.NODE_ENV === 'production';
const newConfig = {
...defaultConfig,
...{
entry: {
admin: resolve(process.cwd(), 'src/admin', 'index.js'),
editor: resolve(process.cwd(), 'src/editor', 'index.js'),
},
},
// Display minimum info in terminal.
stats: 'minimal',