UNPKG

flowfield

Version:

This library provides a pathfinding mechanism based on vectors field.

29 lines (27 loc) 615 B
const path = require('path'); const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); module.exports = { entry: './index.js', output: { path: path.join(__dirname, 'dist'), filename: 'bundle.js', library: 'FlowField', libraryTarget: 'commonjs2' }, module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-loader', options: { presets: ['env', 'babel-preset-flow'], plugins: ['transform-object-rest-spread'] } } } ] }, plugins: [new UglifyJsPlugin()] };