Last active
August 30, 2017 11:35
-
-
Save MrCoder/551dade69ca159206875b4e87f8f40c4 to your computer and use it in GitHub Desktop.
Package sequence parser for http://www.zenuml.com .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path') | |
var JavaScriptObfuscator = require('webpack-obfuscator') | |
function resolve (dir) { | |
return path.join(__dirname, '..', dir) | |
} | |
module.exports = { | |
entry: { | |
//Relative to the directory where the command is running (not where this configure is) | |
parser: './src/index.js' | |
}, | |
target: 'async-node', | |
output: { | |
filename: './dist/main.js', | |
library: 'sequenceParser', | |
libraryTarget: 'umd' | |
}, | |
plugins: [ | |
new JavaScriptObfuscator({ | |
rotateUnicodeArray: true | |
} | |
) | |
], | |
externals: [ | |
'antlr4', | |
'react-dom' | |
]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment