MrCoder
8/30/2017 - 11:35 AM

Package sequence parser for http://www.zenuml.com .

Package sequence parser for http://www.zenuml.com .

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'
  ]}