Add new form editor hello world

[SHOP-2450]
This commit is contained in:
Rostislav Wolny
2019-10-16 15:14:25 +02:00
committed by Jack Kitterhing
parent 7655a3dd55
commit ac0fd14c7c
4 changed files with 52 additions and 4 deletions

View File

@ -360,10 +360,22 @@ const testConfig = {
'jquery': 'jQuery',
'interact': 'interact',
'spectrum': 'spectrum',
}
},
};
module.exports = [adminConfig, publicConfig, migratorConfig, testConfig].map((config) => {
// FormEditor config
const formEditorConfig = {
name: 'form_editor',
entry: {
form_editor: 'form_editor/index.jsx',
},
externals: {
'jquery': 'jQuery',
'mailpoet': 'MailPoet',
},
};
module.exports = [adminConfig, publicConfig, migratorConfig, formEditorConfig, testConfig].map((config) => {
if (config.name !== 'test') {
config.plugins = config.plugins || [];
config.plugins.push(