parent
65fcb1da9a
commit
5e5f96b47f
|
@ -4,7 +4,7 @@
|
||||||
// See rollup-config.config.js instead for building the main (configurable)
|
// See rollup-config.config.js instead for building the main (configurable)
|
||||||
// user entrance file
|
// user entrance file
|
||||||
import {join, basename} from 'path';
|
import {join, basename} from 'path';
|
||||||
import {lstatSync, readdirSync, copyFileSync} from 'fs';
|
import {lstatSync, readdirSync, copyFileSync, mkdirSync} from 'fs';
|
||||||
|
|
||||||
import babel from 'rollup-plugin-babel';
|
import babel from 'rollup-plugin-babel';
|
||||||
import {terser} from 'rollup-plugin-terser';
|
import {terser} from 'rollup-plugin-terser';
|
||||||
|
@ -183,6 +183,7 @@ export default [
|
||||||
}),
|
}),
|
||||||
...extensionFiles.map((extensionFile) => {
|
...extensionFiles.map((extensionFile) => {
|
||||||
if (extensionFile.match(/\.php$/)) {
|
if (extensionFile.match(/\.php$/)) {
|
||||||
|
mkdirSync('dist/extensions', {recursive: true});
|
||||||
copyFileSync(
|
copyFileSync(
|
||||||
join('editor/extensions', extensionFile),
|
join('editor/extensions', extensionFile),
|
||||||
join('dist/extensions', extensionFile)
|
join('dist/extensions', extensionFile)
|
||||||
|
|
Loading…
Reference in New Issue