-const Path = require('path');
-
-module.exports = {
- entry: {
- serpentity: './lib/serpentity.js',
- 'serpentity.min': './lib/serpentity.js'
- },
-
- output: {
- path: Path.resolve(__dirname, '../dist'),
- filename: '[name].js',
- library: 'Serpentity',
- libraryTarget: 'umd'
- },
-
- module: {
- rules: [
- {
- test: /\.js$/,
- exclude: /(node_modules|doc)/,
- use: 'babel-loader'
- }
- ]
- },
-
- resolve: {
- modules: [
- 'node_modules',
- Path.resolve(__dirname, '../lib')
- ],
-
- extensions: ['.js']
- },
-
- context: Path.resolve(__dirname, '..'),
-
- optimization: {
- minimize: true
- }
-};