mirror of
https://github.com/WenPai-org/wpmind.git
synced 2025-08-04 03:29:33 +08:00
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:
parent
5f489c933e
commit
f1c3c698dc
66 changed files with 978 additions and 1286 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue