First try of webpack

This commit is contained in:
Tyler Long
2017-04-14 17:43:53 +08:00
parent d87da684a9
commit e945bf884e
4 changed files with 315 additions and 57 deletions

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