2017-04-22 15:40:35 +08:00
|
|
|
import { webConfig, nodeConfig, lessConfig } from './webpack.config.base.js'
|
2017-04-14 17:43:53 +08:00
|
|
|
|
2017-04-22 17:12:12 +08:00
|
|
|
const config = webConfig()
|
2017-04-14 17:43:53 +08:00
|
|
|
|
2017-04-22 17:12:12 +08:00
|
|
|
const slimConfig = webConfig()
|
|
|
|
slimConfig.externals = ['fs', 'd3']
|
|
|
|
slimConfig.output.filename = '[name].slim.js'
|
2017-04-16 21:38:48 +08:00
|
|
|
|
2017-04-22 17:12:12 +08:00
|
|
|
const apiConfig = nodeConfig()
|
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-04-22 17:12:12 +08:00
|
|
|
export default [config, slimConfig, apiConfig, cssConfig]
|