-'use strict';
-
const Path = require('path');
const Webpack = require('webpack');
module.exports = {
entry: {
- serpentity: './lib/serpentity.js',
- "serpentity.min": './lib/serpentity.js',
+ serpentity: './lib/serpentity.js',
+ 'serpentity.min': './lib/serpentity.js'
},
output: {
},
module: {
- loaders: [
+ rules: [
{
test: /\.js$/,
exclude: /(node_modules|doc)/,
- loader: 'babel-loader',
- query: {
- presets: ['es2015']
- }
+ use: 'babel-loader'
}
]
},
Path.resolve(__dirname, '../lib')
],
- extensions: ['.js'],
+ extensions: ['.js']
},
context: Path.resolve(__dirname, '..'),
- plugins : [
- new Webpack.optimize.UglifyJsPlugin({
- include: /\.min\.js$/,
- minimize: true
- })
- ]
+ optimization: {
+ minimize: true
+ }
};
-