webpack.config.mjs 443 B

1234567891011121314
  1. import log from 'npmlog'
  2. import { builtinPlugins } from './scripts/vars.mjs'
  3. const paths = [
  4. './app/webpack.config.mjs',
  5. './app/webpack.config.main.mjs',
  6. // './web/webpack.config.mjs',
  7. // './tabby-web-demo/webpack.config.mjs',
  8. ...builtinPlugins.map(x => `./${x}/webpack.config.mjs`),
  9. ]
  10. paths.forEach(x => log.info(`Using config: ${x}`))
  11. export default () => Promise.all(paths.map(x => import(x).then(x => x.default())))