mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-24 09:49:46 +02:00
mermaidAPI should target node
This commit is contained in:
13
webpack.config.prod.js
Normal file
13
webpack.config.prod.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { webConfig, nodeConfig } from './webpack.config.base.js'
|
||||
|
||||
const config1 = webConfig()
|
||||
config1.output.filename = '[name].min.js'
|
||||
|
||||
const config2 = webConfig()
|
||||
config2.externals = ['fs', 'd3']
|
||||
config2.output.filename = '[name].slim.min.js'
|
||||
|
||||
const config3 = nodeConfig()
|
||||
config3.output.filename = '[name].min.js'
|
||||
|
||||
export default [config1, config2, config3]
|
Reference in New Issue
Block a user