2021-07-29 21:48:46 +02:00
|
|
|
import nodeExternals from 'webpack-node-externals';
|
2017-04-14 11:43:53 +02:00
|
|
|
|
2021-07-29 21:48:46 +02:00
|
|
|
import { jsConfig } from './webpack.config.base';
|
2017-04-14 11:43:53 +02:00
|
|
|
|
2021-07-29 21:48:46 +02:00
|
|
|
const config = jsConfig();
|
2017-04-16 15:38:48 +02:00
|
|
|
|
2021-07-29 21:48:46 +02:00
|
|
|
const coreConfig = jsConfig();
|
|
|
|
coreConfig.externals = [nodeExternals()];
|
|
|
|
coreConfig.output.filename = '[name].core.js';
|
2017-04-16 15:38:48 +02:00
|
|
|
|
2021-07-29 21:48:46 +02:00
|
|
|
export default [config, coreConfig];
|