@uipath/robot
Version:
UiPath Robot javascript SDK enabling web pages to interact with UiPath Robots
32 lines (31 loc) • 856 B
JavaScript
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const CopyPlugin = require('copy-webpack-plugin');
module.exports = {
entry: {
'js/UiPathRobot': path.join(__dirname, './src/uipathRobot.ts')
},
output: {
filename: '[name].js',
path: __dirname + '/dist'
},
module: {
rules: [{
test: /\.tsx?$/,
loader: 'ts-loader',
exclude: /node_modules/,
}]
},
resolve: {
extensions: [".tsx", ".ts", ".js"]
},
plugins: [
new webpack.BannerPlugin(fs.readFileSync('./LICENSE', 'utf8')),
new CopyPlugin({patterns: [{ context: './src/', from: '**/*resource.json', to: ''}]})
],
optimization: {
minimize: true,
nodeEnv: "production"
},
};