mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 14:59:53 +02:00
Generate all the dist files using webpack
This commit is contained in:
16
webpack.config.slim.js
Normal file
16
webpack.config.slim.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import path from 'path'
|
||||
|
||||
const config = {
|
||||
target: 'web',
|
||||
entry: {
|
||||
mermaid: './src/mermaid.js',
|
||||
mermaidAPI: './src/mermaidAPI.js'
|
||||
},
|
||||
externals: ['fs', 'd3'],
|
||||
output: {
|
||||
path: path.join(__dirname, './dist/'),
|
||||
filename: '[name].slim.js'
|
||||
}
|
||||
}
|
||||
|
||||
export default [config]
|
Reference in New Issue
Block a user