v_2.1
This commit is contained in:
parent
168edb3df6
commit
41cc4e81cb
1 changed files with 3 additions and 0 deletions
3
build.js
3
build.js
|
|
@ -49,6 +49,9 @@ console.log('Processing editor...');
|
||||||
let editorContent = fs.readFileSync(path.join(SRC_DIR, 'power-flux-card-editor.js'), 'utf8');
|
let editorContent = fs.readFileSync(path.join(SRC_DIR, 'power-flux-card-editor.js'), 'utf8');
|
||||||
// Remove imports/exports if any
|
// Remove imports/exports if any
|
||||||
editorContent = editorContent.replace(/import .* from .*/g, '').replace(/export .*/g, '');
|
editorContent = editorContent.replace(/import .* from .*/g, '').replace(/export .*/g, '');
|
||||||
|
// Remove editorTranslations/cardTranslations declarations (already created by build merge script)
|
||||||
|
editorContent = editorContent.replace(/const editorTranslations\s*=\s*\{[^}]*\};/gs, '');
|
||||||
|
editorContent = editorContent.replace(/const cardTranslations\s*=\s*\{[^}]*\};/gs, '');
|
||||||
|
|
||||||
// Process Main Card
|
// Process Main Card
|
||||||
console.log('Processing main card...');
|
console.log('Processing main card...');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue