Generate all the dist files using webpack

This commit is contained in:
Tyler Long
2017-04-15 16:09:30 +08:00
parent 9d56595d48
commit 869a64e457
6 changed files with 58 additions and 10 deletions

16
webpack.config.slim.js Normal file
View 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]