mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-04 08:06:43 +02:00
First try of webpack
This commit is contained in:
15
webpack.config.js
Normal file
15
webpack.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import path from 'path'
|
||||
|
||||
const config = {
|
||||
target: 'web',
|
||||
entry: {
|
||||
mermaid: './src/mermaid.js'
|
||||
},
|
||||
externals: 'fs',
|
||||
output: {
|
||||
path: path.join(__dirname, './dist/'),
|
||||
filename: '[name].js'
|
||||
}
|
||||
}
|
||||
|
||||
export default [config]
|
Reference in New Issue
Block a user