mermaid/webpack.config.js

14 lines
344 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-10 19:41:34 +08:00
import { jsConfig, lessConfig } 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()
coreConfig.externals = [nodeExternals(), 'fs']
coreConfig.output.filename = '[name].core.js'
2017-04-16 21:38:48 +08:00
2017-04-22 17:12:12 +08:00
const cssConfig = lessConfig()
2017-04-22 15:40:35 +08:00
2017-09-09 21:47:21 +08:00
export default [config, coreConfig, cssConfig]