2017-09-09 15:47:21 +02:00
|
|
|
import nodeExternals from 'webpack-node-externals'
|
2017-04-14 11:43:53 +02:00
|
|
|
|
2017-09-12 16:06:19 +02:00
|
|
|
import { jsConfig } from './webpack.config.base'
|
2017-04-14 11:43:53 +02:00
|
|
|
|
2017-09-09 15:47:21 +02:00
|
|
|
const config = jsConfig()
|
2017-04-16 15:38:48 +02:00
|
|
|
|
2017-09-09 15:47:21 +02:00
|
|
|
const coreConfig = jsConfig()
|
2017-09-10 17:16:35 +02:00
|
|
|
coreConfig.externals = [nodeExternals()]
|
2017-09-09 15:47:21 +02:00
|
|
|
coreConfig.output.filename = '[name].core.js'
|
2017-04-16 15:38:48 +02:00
|
|
|
|
2017-09-12 16:06:19 +02:00
|
|
|
export default [config, coreConfig]
|