webpack fs: 'empty'

This commit is contained in:
Tyler Long
2017-09-11 23:06:34 +08:00
parent c5a7eeaa0f
commit 75d9e7bc59
11 changed files with 110 additions and 107 deletions

View File

@@ -16,6 +16,9 @@ export const jsConfig = () => {
entry: {
mermaid: './src/mermaid.js'
},
node: {
fs: 'empty' // jison generated code requires 'fs'
},
output: {
path: path.join(__dirname, './dist/'),
filename: '[name].js',