mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-23 02:06:45 +02:00
Refactor webpack config code
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { webConfig, nodeConfig, lessConfig } from './webpack.config.base.js'
|
||||
|
||||
const config1 = webConfig()
|
||||
const config = webConfig()
|
||||
|
||||
const config2 = webConfig()
|
||||
config2.externals = ['fs', 'd3']
|
||||
config2.output.filename = '[name].slim.js'
|
||||
const slimConfig = webConfig()
|
||||
slimConfig.externals = ['fs', 'd3']
|
||||
slimConfig.output.filename = '[name].slim.js'
|
||||
|
||||
const config3 = nodeConfig()
|
||||
const apiConfig = nodeConfig()
|
||||
|
||||
const config4 = lessConfig()
|
||||
const cssConfig = lessConfig()
|
||||
|
||||
export default [config1, config2, config3, config4]
|
||||
export default [config, slimConfig, apiConfig, cssConfig]
|
||||
|
Reference in New Issue
Block a user