UNPKG

flatten-js

Version:

Javascript library for 2d geometry

26 lines (22 loc) 606 B
const path = require('path'); const config = { entry: './index.js', output: { library: "flatten", libraryTarget: "commonjs2", path: path.resolve(__dirname, 'dist'), filename: 'flatten.min.js' }, module: { rules: [ { test: /\.js$/, exclude: /(node_modules|bower_components)/ } ], }, plugins: [], devtool: "source-map" }; // config.plugins = config.plugins.filter((plugin) => plugin.constructor.name !== 'UglifyJsPlugin'); module.exports = config;