mermaid/webpack.config.babel.js

12 lines
283 B
JavaScript
Raw Normal View History

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